Correct git.exe path for TortoiseGit under Git for windows 2.4
Solution 1
Check to make sure that your %HOME%
variable in Windows is set so that TortoiseGit can find your .gitconfig
file.
Solution 2
All of these answers are wrong. The Git.exe Path in setting is set incorrect.
Steps to fix:
- Right click on git respostory
- Select TottoiseGit | Settings
- You will get the warning dialog
- Dismiss it
- You will get another dialog, select ignore
- Settings will launch
- Select: General (at the top of the tree)
- 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!
Solution 3
TortoiseGit 1.8.14.1 (preview release) has full support for Git for Windows 2.x (no need for workarounds with adding unneeded folders to %PATH%
). Before this version, TortoiseGit cannot find the git system config of Git for Windows 2.x.
The warning you are getting means that you haven't set up the user.name
and user.email
git config settings. This can be done for a project or also globally (in %HOME%\.gitconfig
: TortoiseGit here uses the %HOME%
environment variable - if it is not set TortoiseGit uses your Windows home directory automatically).
Klas Mellbourn
web developer, consultant, Git enthusiast e-mail: [email protected] GitHub: https://github.com/Mellbourn
Updated on June 22, 2020Comments
-
Klas Mellbourn almost 4 years
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.
I have version 1.8.14.0 of TortoiseGit, which is the latest.
The TortoiseGit
Git.exe Path
setting currently points toC:\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 bothC:\Program Files\Git\cmd
andC:\Program Files\Git\mingw64\bin
but neither of those settings work for TortoiseGit. -
DNT about 6 yearsWorked well for me with TortoiseGIT 2.6.0.0 and git.exe 2.16.2 , thanks!