Clone a 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
This article should help users to clone a repository from their remote server to their local machine.
Solution
There are a few ways to clone a repository into SourceTree:
Method #1 - Directly through the SourceTree's Main UI

Steps:
Click on the "Clone/New" button.
Click on "Clone Repository".
Fill in the remote repository URL (Both HTTPS and SSH will work) and all other details. Click "Clone".
If you're using HTTPS in SourceTree for the first time, SourceTree might prompt you with an authentication window to access your Bitbucket account.
Method #2 - Through the Remote Repository (e.g. Bitbucket Cloud or Bitbucket Server)


Steps:
Click "Clone in SourceTree".
SourceTree will open, and a URL Actions pop-up window should appear with the details of the repository you're cloning. Click "Clone" to proceed.
Method #3 - Through SourceTree's Hosted Repositories
In the Mac version, it is called Remote View, not Hosted Repositories


Steps:
Open up Hosted Repositories. Right-click on a repository you would like to Clone. Click "Clone"
A URL Actions pop-up window should appear with the details of the repository you're cloning. Click "Clone" to proceed.
Was this helpful?