Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sourcetree Can't Open Git Bash

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.

like image 394
Dan Spurgin Avatar asked Nov 18 '15 21:11

Dan Spurgin


People also ask

Why my Git bash is not opening?

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.

How do I enable Git in SourceTree?

In SourceTree, adjust the following setting: go to Tools > Options > Git > Git Version and select "Use System Git".

How do I use Git terminal in SourceTree?

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.

How do I open terminal in SourceTree?

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.


3 Answers

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 :)

like image 135
GrzegorzM Avatar answered Oct 10 '22 09:10

GrzegorzM


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:

enter image description here

like image 9
Tweetie Sabado Avatar answered Oct 10 '22 08:10

Tweetie Sabado


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.

like image 2
Veer Patel Avatar answered Oct 10 '22 07:10

Veer Patel