api for adding bookmarks?

Is there and API that I can use too add Bookmarks to SourceTree?


For background, I have a tool that checks out git repositories and configures them for my developer environment.  As a step it would be a nice touch if I could add them to my SourceTree bookmarks.

2 answers

1 accepted

2 votes
Answer accepted

BTW: There's also missing detailled documentation on configuration of Sourcetree. Having this you might add your bookmarks by manipulation of sourcetree-configuration ...


Doing so, you do not have to run Sourcetree

On Win-Systems you find the Bookmarks here: {c:\Users\XXXX\AppData\Local\Atlassian\SourceTree\bookmarks.xml}

I'm only familiar with SourceTree for windows - so the answer might be different for SourceTree for MAC

You can startup SourceTree only with a few different command line options - there is no option to create a bookmark directly:


sourcetree.exe --help

to see the list of available options.


sourcetree.exe -f PATH_TO_YOUR_REPO

opens sourcetree and offers to add the new repository to your bookmarks as well .....

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,237 views 4 2
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you