Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 1.8.14.0 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.

like image 345
Klas Mellbourn Avatar asked Mar 16 '26 08:03

Klas Mellbourn


1 Answers

All of these answers are wrong. The Git.exe Path in setting is set incorrect.

Steps to fix:

  1. Right click on git respostory
  2. Select TottoiseGit | Settings
  3. You will get the warning dialog
  4. Dismiss it
  5. You will get another dialog, select ignore
  6. Settings will launch
  7. Select: General (at the top of the tree)
  8. In the edit field for Git.exe path (half way down) enter the Git.exe path (in my case C:\ProgramFiles\Git\bin)

That's it!

like image 90
user6664090 Avatar answered Mar 17 '26 23:03

user6664090



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!