On Windows 8 & trying to use SourceTree as my Git client -- all works but the following:
When I hit the terminal button in Sourctree it says "It has not been possible to start the Git Bash terminal" (yes, I'm using the default SourceTree setting to launch the git bash terminal when this button is clicked).
I am able to bring up said terminal but then I have to cd into the proper directory. Really would like the terminal button to work in SourcTree.
Open CMD as Admin. CD to the installation path of GitHub (e.g. CMDPRMPT> CD "C:\Program Files\Git") Run "git-bash.exe" from command prompt. Right-click the GIT BASH icon on the taskbar and pin it so you can avoid steps 1-3 in the future.
In SourceTree, adjust the following setting: go to Tools > Options > Git > Git Version and select "Use System Git".
To add this remote in Sourcetree first you need right click on the Workspace menu in the sidebar. Then add the remote <name> (usually defined as "origin") and <url> in the fields and click in OK. That's it. Your new branch is ready.
Go to Tools > Options > Git . Uncheck/disable Use Git Bash as default terminal. . Restart Sourcetree (optional). Clicking on the Terminal now will launch a Terminal/Command-line in the repository's home directory.
Yeah, for me the solution was to upgrade GIT to newest version. I had 1.9.4 and now I have 2.6.3. It works great. Also I noticed that git has new console right now, I see more colors here :)
Check your git version. If you still have system Git 1.9.5 running, then better upgrade to 2.6.3 now. Check your Git Path too then restart SourceTree. The new git bash terminal looks like this:
This may be useful if Cygwin is installed.
Thanks for suggesting to upgrade Git, but it didn't resolve the issue for me on Windows 7.
To find out Git's location, open a new Git Bash and invoke the which git
command:
$ "which git"
/usr/bin/git
Remove git.exe
from C:\cygwin\bin
.
Restarted SourceTree and it worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With