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

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:

Run

sourcetree.exe --help

to see the list of available options.

Running

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

569 views 1 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