• Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Please add support for Git for Windows > 2.0 - since 2.0 its possible to have a 64 Bit Version of git installed. SourceTree does not find Git if its installed as 64-Bit.

      Git for Windows 2.4.0 can be downloaded here: https://github.com/git-for-windows/git/releases/tag/v2.4.0.windows.2

      Work Around
      Add a SymLink to re-create the Git v2.x bin folder.

      C:\Program Files\Git>mklink /D bin cmd
      symbolic link created for bin <<===>> cmd
      

      see https://confluence.atlassian.com/display/SOURCETREEKB/Using+Git+2.x+-+Windows

            [SRCTREEWIN-3226] Add support for Git for Windows 2.4.0

            Just a heads up for everyone wanting to use Git 2.5.x in SourceTree: I had success downloading Portable Git from https://github.com/git-for-windows/git/releases and extracting it to %localappdata%/Atlassian/SourceTree/git_local, removing the existing directory.

            Run the post-install.bat script after extracting and you're good to go. This replaces the embedded Git with the current 2.5.2 version and still allows for using the embedded Terminal window in SourceTree. Make sure to check the version in Settings > Git, and enable the "Use Git Bash as default terminal" option.

            Julius Bullinger added a comment - Just a heads up for everyone wanting to use Git 2.5.x in SourceTree: I had success downloading Portable Git from https://github.com/git-for-windows/git/releases and extracting it to %localappdata%/Atlassian/SourceTree/git_local , removing the existing directory. Run the post-install.bat script after extracting and you're good to go. This replaces the embedded Git with the current 2.5.2 version and still allows for using the embedded Terminal window in SourceTree. Make sure to check the version in Settings > Git , and enable the "Use Git Bash as default terminal" option.

            bthurber added a comment -

            Also there is a newer beta 1.6.15004 of SourceTree for Windows available here:

            https://www.sourcetreeapp.com/download/windows-beta.php

            Release notes are rather unclear as to what is fixed in this version:

            https://www.sourcetreeapp.com/update/WindowsReleaseNotes_public_beta.html

            bthurber added a comment - Also there is a newer beta 1.6.15004 of SourceTree for Windows available here: https://www.sourcetreeapp.com/download/windows-beta.php Release notes are rather unclear as to what is fixed in this version: https://www.sourcetreeapp.com/update/WindowsReleaseNotes_public_beta.html

            For anyone who comes across this issue, it seems the Git for Windows team have added some redirect executables in a /bin directory to their latest release candidate (v2.4.4.2 RC3), which allows the old non-beta release of SourceTree to work with the new version of Git.

            See https://github.com/git-for-windows/git/issues/208.

            Nick Longin added a comment - For anyone who comes across this issue, it seems the Git for Windows team have added some redirect executables in a /bin directory to their latest release candidate ( v2.4.4.2 RC3 ), which allows the old non-beta release of SourceTree to work with the new version of Git. See https://github.com/git-for-windows/git/issues/208 .

            Nick Longin added a comment - - edited

            Beta 1.6.15003 does seem to work with Git 2.x but the Terminal button now crashes SourceTree with a fatal error rather than simply failing to start Git Bash as in 1.6.14.

            Tested on two different Windows 7 machines with the same result, so not sure this issue can be considered resolved?

            Maybe the terminal problem should be a separate issue though...

            Edit: I created a new issue since the problem also occurs with embedded git: https://jira.atlassian.com/browse/SRCTREEWIN-3275

            Nick Longin added a comment - - edited Beta 1.6.15003 does seem to work with Git 2.x but the Terminal button now crashes SourceTree with a fatal error rather than simply failing to start Git Bash as in 1.6.14. Tested on two different Windows 7 machines with the same result, so not sure this issue can be considered resolved? Maybe the terminal problem should be a separate issue though... Edit: I created a new issue since the problem also occurs with embedded git: https://jira.atlassian.com/browse/SRCTREEWIN-3275

            minnsey added a comment -

            Apologies I realise the workaround page had restricted access, that has changed now.

            There is also a Beta available here http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeBetaSetup_1.6.15003.exe which should work with Git for Windows 2.x.

            NB. As far as I know this requires use of Putty/Plink for ssh management, assuming Git for Windows 2.x is installed in program files directory and NOT running as administrator. This is due to permissions issues when trying to run ssh-agent.exe.

            minnsey added a comment - Apologies I realise the workaround page had restricted access, that has changed now. There is also a Beta available here http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeBetaSetup_1.6.15003.exe which should work with Git for Windows 2.x. NB. As far as I know this requires use of Putty/Plink for ssh management, assuming Git for Windows 2.x is installed in program files directory and NOT running as administrator. This is due to permissions issues when trying to run ssh-agent.exe.

            Hosam Aly added a comment -

            One of the issues causing the terminal button not to work is that the default installation path of Git for Windows includes a space. The button tries to invoke the command incorrectly, causing CMD to complain that C:\Program is not recognized.

            Hosam Aly added a comment - One of the issues causing the terminal button not to work is that the default installation path of Git for Windows includes a space. The button tries to invoke the command incorrectly, causing CMD to complain that C:\Program is not recognized.

            Someone already opened a bug report about this a month ago: https://jira.atlassian.com/browse/SRCTREEWIN-3174

            As mentioned there, although the symbolic link workaround does allow SourceTree to function with Git 2.x, the "Terminal" button won't work properly and requires further workarounds.

            Nick Longin added a comment - Someone already opened a bug report about this a month ago: https://jira.atlassian.com/browse/SRCTREEWIN-3174 As mentioned there, although the symbolic link workaround does allow SourceTree to function with Git 2.x, the "Terminal" button won't work properly and requires further workarounds.

            The discussion on GitHub says that Git for Windows 1.x has had the cmd directory for a while. That makes me think that if SourceTree was updated to look in cmd it would work with 1.x and 2.x.

            Steve Hoelzer added a comment - The discussion on GitHub says that Git for Windows 1.x has had the cmd directory for a while. That makes me think that if SourceTree was updated to look in cmd it would work with 1.x and 2.x.

            마누엘 added a comment -

            See https://github.com/git-for-windows/git/issues/152 for possible backwards compatibility discussion in the new Git for Windows 2.x release.

            마누엘 added a comment - See https://github.com/git-for-windows/git/issues/152 for possible backwards compatibility discussion in the new Git for Windows 2.x release.

            LarsM added a comment -

            Ok, Workaround works so far.

            LarsM added a comment - Ok, Workaround works so far.

              Unassigned Unassigned
              591677115db2 LarsM
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: