Git on Windows 7/8/8.1
Pre-requisites :
You must have git installed on your machine. I am taking Git installation as "C:\Program Files (x86)\Git"(you may have a different one).
Steps :
- Right Click on My Computer -> Properties
- Click Advanced System Settings link
- Click Environment Variables at the bottom of the window
- Add a new system variable with name PROGRAMFILES(x86) and value as 'C:\Program Files (x86);' and hit OK button
- Now, you have new System Variable added
- Find the system variable Path and click Edit button
- Add : %PROGRAMFILES(x86)%\Git\bin;%PROGRAMFILES(x86)%\Git\cmd at the end of the value( don't remove existing values ) and click OK
- Exit the PowerShell or cmd if you have it running and restart or if not, then start a new instance.
- Now test if using git --version in PowerShell. If you get the version then its good else you need to trace the issue in the steps you followed
Comments
Post a Comment