Skip to main content

Git on Windows 7/8/8.1

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 :
  1. Right Click on My Computer -> Properties
  2. Click Advanced System Settings link
  3. Click Environment Variables at the bottom of the window
  4. Add a new system variable with name PROGRAMFILES(x86) and value as 'C:\Program Files (x86);' and hit OK button
  5. Now, you have new System Variable added
  6. Find the system variable Path and click Edit button
  7. Add : %PROGRAMFILES(x86)%\Git\bin;%PROGRAMFILES(x86)%\Git\cmd at the end of the value( don't remove existing values ) and click OK
  8. Exit the PowerShell or cmd if you have it running and restart or if not, then start a new instance.
  9. 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