Clone a repository

When you clone a repository, you create a copy of your Bitbucket repository on your local system. Cloning also connects the remote and local repositories so that you can start pushing and pulling changes between both places.

Clone a Git repository

Prior to cloning or interacting with a Bitbucket Cloud repository using git, you'll need to either:

You can use the terminal, SourceTree, or any other client you'd like to clone your Git repository. These instructions show you how to clone your repository using Git from the terminal.

  1. In the repository, select the Clone button.

  2. Copy the clone command.

  3. From a terminal window, change into the local directory where you want to clone your repository.

    $ cd <path_to_directory>  

  4. Paste the command you copied from Bitbucket, for example:

    $ git clone  

If the clone was successful, a new sub-directory appears on your local drive with the same name as the repository that you cloned.

For further information on Repository Access Tokens, refer to our Using repository access tokens support documentation.


Still need help?

The Atlassian Community is here for you.