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:

  1. Click on "Clone/New".

  2. Click on the "Add Working Copy" tab.

  3. In the Working Copy Path section, insert your local repository folder path

    1. 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.

  4. Click "Add" to confirm adding the local repository.

(Auto-migrated image: description temporarily unavailable)
Updated on May 22, 2025

Still need help?

The Atlassian Community is here for you.