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

CLI (Command Line Interface) to Add Local Repo to SourceTree [Windows]

Midnight February 6, 2019

Is there any way to Add a local repository to be tracked by SourceTree without using the GUI?

I'm creating some workflow tools for an internal package manager for which it is important to be able to add a local repository to SourceTree via a command line. This will be run automatically by my tools and shouldn't require the user's input (besides maybe input of a username/password) 

If there is a file that contains a list of repositories that I can edit, that would work as well. I tried looking around in the Program Files, but didn't find anything except an XML for which tabs were open.


Using the latest SourceTree version (3.0.17) on Windows 10.


1 answer

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2019


I'm afraid there isn't currently a CLI to do that, however you could amend the %localappdata%\Atlassian\Sourcetree\bookmarks.xml

Jobin Kurian February 11, 2022

How to do the same on Mac OS. Is that possible for one to add the repo to the Sourcetree GUI from the terminal?

吴小红 January 7, 2023

any progress? I would also like to go to bookmarks in macos terminal.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events