SourceTree 1.6.14 cannot find Git 2.4.0 install on Windows
After installing Git 2.4.0 on my Windows 7 system, I tried to change the setting in SourceTree 1.6.14 to "Use System Git" and not the embedded version.
However, by clicking Use Git System, nothing happened and the setting remained set to Use Built-in Git.
How do I force SourceTree to use the installed version of Git?
source to share
This will likely be fixed in a future patch for SourceTree, however until it happens it will be a workaround as follows.
Git versions prior to 2.0, saved git.exe
in a subdirectory called bin
and this is what SourceTree is looking for. Starting with Git> = 2.0, git.exe
moved to a folder named cmd
.
Therefore, the easiest way to get a SourceTree to recognize your Git installation is to create a symbolic link for the folder using the mklink
following:
C:\Program Files (x86)\Git\>mklink /D bin cmd
Edit:
Although the above Git fixes for normal graphical operations (commit / push, etc.) it does not commit the Terminal button as this command is trying to execute sh.exe
with the following command and does not work as it sh.exe
also has been moved to Git 2.4.
"C:\Windows\System32\cmd.exe" /c "C:\Program Files (x86)\Git\bin\sh.exe" --login -i
Edit 2 . Further reading - This was caused by a Git issue for supporting Windows here .
source to share