Tuesday, March 31, 2015

Github for Windows: Where can I find Git.exe?

Yesterday I mentioned an issue about Bower where Git.exe was not part of the PATH environment variable. Now if have installed msysgit , your path will be something like c:\program files\git\bin\ or c:\program files (x86)\git\bin. But what if you are using GitHub for Windows? In that case the correct path is little bit harder to find.

GitHub for Windows is using a portable version of msysgit.

To find the location of this portable version, open up windows explorer and go the following folder: %USERPROFILE%\AppData\Local\GitHub\

image

Inside this folder, you should find a folder PortableGit_<some guid> . Open up this folder. Inside you’ll find a bin folder with the git.exe:

image

Copy this path to your PATH environment variable.

No comments: