Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bash for Windows, Sourcetree, and Git

Tristan Vroom
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 26, 2016

Any way to get them to play nicely together?

7 answers

3 votes
jrcharney
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 23, 2016

I  think what he means is (and this is something I am interested in too), is there a way to have Sourcetree work with the version of git that is installed with the Windows Subshell for Linux (WSL)?

gitk, a software program similar to what Sourcetree does, can work for WSL, but only if Xming X Server for Windows (Xming) is installed OUTSIDE of Bash on Ubuntu on Windows (BUW).  This page provides a good explanation on how to set gitk and Xming.

I personally would like to see an ncurses interface like with tig, especially since I like to use the command line.

However, if you've got a boss like mine who insists on having you use Sourcetree, then by all means, let's keep pushing Atlassian to make a version of Sourcetree for Linux that can also work for WSL/BUW in the near future.

0 votes
Sam Denty
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2019
0 votes
BillyP
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 26, 2017

Gitbash for Windows has come a long way. 

https://git-for-windows.github.io/

I use this on my Windows System.  

0 votes
Isaac Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 25, 2017

You can use GitWrap (https://github.com/ardevd/gitwrap/releases). It is a tiny program that just pipes git command line to WSL and pipes the output back out to whatever called it.

Keep in mind that you'll be working in /mnt, so you'll have to update the repository paths.

andrew
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2018

any more details on how to get giwrap to work? I replaced the git.exe files but sourcetree is still unhappy

latest windows with latest WSL (Ubuntu 18.04) and latest git on WSL

Like Sergej-Radkovec likes this
0 votes
Filippo Bollini October 19, 2016

Git Bash is installed by the latest git installer for Windows (from https://git-scm.com/downloads)

Atlassian SourceTree will open Git Bash when you push the Terminal button. Make sure the "Use Git Bash as default terminal" option is set: https://confluence.atlassian.com/sourcetreekb/using-terminal-in-sourcetree-781398580.html

 

0 votes
Filippo Bollini October 19, 2016

Could you be more specific?

0 votes
tlroche
Contributor
August 26, 2016

caveats: I'm a Linux guy now, so

1. I haven't used Windows regularly for almost 10 years (though its ubiquity is such that I continue to use it occasionally)

2. I'm a commandline kinda guy (except for Emacs' git functionality), and know nothing about Sourcetree,

That being said: I *do* know a lot about Cygwin from when I used Windows regularly. Its feature I used most was its bash (I *am* a CLI guy), and I also used its git quite a bit, along with many other tools. So my recommendation would be,

1. Install Cygwin (if nothing else, it shows you how a package manager can work on Windows)

2. Use the Cygwin bash and git from its shell. It's *always* good to have a commandline, if only for fallback.

3. Determine how to make Sourcetree call Cygwin's bash and git.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events