Correct git.exe path for TortoiseGit under Git for windows 2.4


I have installed the Git for windows 2.4.1 release candidate (64bit)

It seems that after installation the following has been added to the system path

C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin

But with that setting it seems that TortoiseGit stops working. When I try to do a git operation in TortoiseGit, it cannot find my git username anymore.

enter image description here

I have version of TortoiseGit, which is the latest.

The TortoiseGit Git.exe Path setting currently points to C:\Program Files\Git\cmd.

In the TortoiseGit documentation it states

There is a known issue in msysGit/Git for Windows: Git for Windows
provides two git.exe-files (one in a folder named bin and one in a
folder named cmd). Make sure Git.exe Path points to the bin-folder
within the Git for Windows installation folder.

In Git 2.4 there is a folder C:\Program Files\Git\usr\bin, but that no longer contains the git.exe binary.

The git.exe binary is found in both C:\Program Files\Git\cmd and C:\Program Files\Git\mingw64\bin but neither of those settings work for TortoiseGit.


Check to make sure that your %HOME% variable in Windows is set so that TortoiseGit can find your .gitconfig file.

Answered By – Jeremy Fortune

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published