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

(Auto-migrated image: description temporarily unavailable)

Steps:

  1. Click on the "Clone/New" button.

  2. Click on "Clone Repository".

  3. 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)

(Auto-migrated image: description temporarily unavailable)
(Auto-migrated image: description temporarily unavailable)

Steps:

  1. Click "Clone in SourceTree".

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

(Auto-migrated image: description temporarily unavailable)
(Auto-migrated image: description temporarily unavailable)

Steps:

  1. Open up Hosted Repositories. Right-click on a repository you would like to Clone. Click "Clone"

  2. A URL Actions pop-up window should appear with the details of the repository you're cloning. Click "Clone" to proceed.

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.