TortoiseGit - git not found

alexandrul picture alexandrul · Sep 7, 2009 · Viewed 52.8k times · Source

I'm using TortoiseGit with msysGit installed with the msysGit-fullinstall-1.6.4-preview20090729.exe and it works in a very strange way:

  • on the About windows it says it can't find git, even if all the operations seems to complete ok
  • on the Settings window, General tab, MSysGit section, the version is blank even with the correct path set (....\msysGit\bin)
  • on the Settings window, Git\Config tab, any attempt to alter and save the settings lead to some stange text-less error, and the only way to close the window is by `Cancel' button
  • on every operation it seems to look for git.exe on all the folders in path, which is at least strange, given that it knows exactly where to find the executable

The first three points are not present if I install msysGit with the Git-1.6.4-preview20090730.exe, even if the path is set the same in both cases (....\msysGit\cmd)

What can I do to make TortoiseGit recognise git installation from the msysGit-fullinstall-1.6.4-preview20090729.exe?


Environment:

  • Git-1.6.4-preview20090730.exe
  • msysGit-fullinstall-1.6.4-preview20090729.exe
  • TortoiseGit 1.0.2.0 32bit

EDIT:

I don't want to put msysGit\bin in path, just msysGit\cmd.

If I simply replace the files from msysGit-fullinstall-1.6.4-preview20090729.exe with the files from an Git-1.6.4-preview20090730.exe installation, then TortoiseGit seems to recognize the git version and allows me to edit the Git\Config section in the settings. This is at least strange, given that the rest of the environment is not modified at all.

As soon as I restore the msysGit-fullinstall-1.6.4-preview20090729.exe files, TortoiseGit cease to function properly.

Answer

Andrei picture Andrei · Sep 25, 2010

While this question is still hot... some nice people contributed lots of bugfixes to all three projects, so this is what I did to get TortoiseGit on Win7x64, previously failing on all combinations:

  1. install mSysGit (network installer) into C:\msysgit, it will download the source and compile it leaving you in a bash git prompt. Stable version: msysGit-netinstall-1.7.2.3-preview20100911.exe 13 sep
  2. install Git “preview” into C:\Program Files (x86)\Git, choose OpenSSH for ssh link Stable version: Git-1.7.2.3-preview20100911.exe 13 sep
  3. install tortoisegit into C:\Program Files\TortoiseGit, (x64 version) and configure it’s settings specifying the git path (C:\msysgit\bin) and menu integration. Stable version: TortoiseGit-1.5.6.0-64bit.msi 25 sep

This setup picked up my existing git repos made on WinXP x86 with older versions of the packages, and seems fairly stable and fully functional.