Skip to content

Instantly share code, notes, and snippets.

@denisinla
Created October 3, 2013 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denisinla/6815561 to your computer and use it in GitHub Desktop.
Save denisinla/6815561 to your computer and use it in GitHub Desktop.
Adding git to Windows 7 PATH

Adding Git to Windows 7 Path

Note: You must have msysgit installed on your machine. Also, the path to my git install is “C:\Program Files (x86)\Git” yours might be different. Please check were yours is before continuing.

  • Open Windows Environment Variables/Path Window
  • Right-Click on My Computer
  • Click Advanced System Settings link from the left side column
  • Click Environment Variables in the bottom of the window
  • Then under System Variables look for the path variable and click edit Add the pwd to git’s bin and cmd at the end of the string like this: ;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd

Now test it out in PowerShell; type git and see if it recognizes the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment