Adding Git to PATH Variable - Can't find GitHub under AppData/Local Adding Git to PATH Variable - Can't find GitHub under AppData/Local windows windows

Adding Git to PATH Variable - Can't find GitHub under AppData/Local


Just add the path to the command. This was the path to add to the end of the windows PATH.

C:\Program Files\Git\bin\

Now we should be able to find git.exe by typing

git


It turns out Git was being sneaky!

It was supposed to be installed in AppData/Local, but was actually installed in the Program Files(x86) directory.

I added this to my Path variable after a semicolon

C:\Windows\Program Files(x86)\Git\bin\git.exe

And magically, I can run git again.


For Windows 7 using GIT 2.7.2 I used this in the path under environment variables:

;C:\Program Files\Git\bin;C:\Program Files\Git\bin\cmd. I then typed git --version from a command prompt and got:

git version 2.7.2.windows.1