Add an existing repository into SourceTree
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Learn how to add an existing repository in SourceTree.
Solution
You have an existing repository in your local machine, and you would like to add it into SourceTree to work on it. Here's how to add the local repository:
Click on "Clone/New".
Click on the "Add Working Copy" tab.
In the Working Copy Path section, insert your local repository folder path
If it is either a Git or Hg repository, it will be stated as so as the "Repository Type"; else it'll state that it is an invalid path.
Click "Add" to confirm adding the local repository.

Was this helpful?