It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

(Feature Request) command line tool

Jocelyn Mallon Oct 17, 2011


Before switching to Sourcetree I was a gitx user, and also evaluated git-tower, and both of those apps feature a command line tool, to launch their app from a repository.

I found an earlier request for this at the old sourcetree site here:

However with the current version of sourcetree (1.2.81/ invoking it from the command line with that command:

open $1 -a sourcetree

results in somewhat unexpected and annoying behavior. Sourcetree does not recognize repositories opened this way that already have bookmarks, so it 1) always prompts (sometimes two or three times) to create a new bookmark, and 2) it does not remember any window settings for the repository, even if you create a new bookmark from the popup.

2 answers

1 accepted

2 votes
Answer accepted
Steve Streeting Oct 17, 2011

Thanks for pointing out the issue with the bookmarks; this is down to the initialisation order when ST is launched this way. As I've mentioned, being on the App Store limits what SourceTree is allowed to do here (and it's getting stricter if anything), but I'll try to at least make ST behave better when you set this up yourself in future.

Beign tracked here:

0 votes
Glyn Normington Oct 18, 2011

SourceTree is terrific, but with a large number of git repositories, the ability to launch it from the command line and have it navigate to the window corresponding to the git repository of the directory I'm currently in would be very useful - like gitx used to do.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,887 views 14 18
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you