Pre-Requirements
- Git installed
- Composer installed
- database created
git clone https://github.com/magento/magento2.git
Step 2 :
Go to installation directory this case this would be
cd magento2
Step 3 :
Needed extension
intl
soap
xsl
Step 4 : composer install
Step 5 : hit installation directory url and follow the steps.
like ex. in case of local http://localhost/magento2