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/220.127.116.11) 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.
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: https://jira.atlassian.com/browse/SRCTREE-385
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.
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot