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
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.
- From the repository, click + in the global sidebar and select Clone this repository under Get to work.
- Copy the clone command.
From a terminal window, change into the local directory where you want to clone your repository.
$ cd <path_to_directory>
Paste the command you copied from Bitbucket, for example:
$ git clone https://email@example.com/teamsinspace/documentation-tests.git
If the clone was successful, a new sub-directory appears on your local drive with the same name as the repository that you cloned.