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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

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.
Feb 07, 2019


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

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

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