Clone a Git repository | Bitbucket Cloud | Atlassian Support (2024)

Cloning a repository syncs it to your local machine. After you clone, you can add and edit files and then push and pull updates.

This article refers to the command line. If you aren't familiar with the command line, check out our videos tutorials for your operating system:

Clone a repository using the command line

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

You can use Sourcetree, Git from the command line, or any client you like to clone your Git repository. These instructions show you how to clone your repository using Git from the terminal.

  1. From the repository, select the Clone button.

  2. Copy the clone command (either the SSH format or the HTTPS).
    If you are using the SSH protocol, ensure your public key is in Bitbucket and loaded on the local system to which you are cloning.

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

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

Clone over HTTPS

1$ git clone https://[email protected]/teamsinspace/documentation-tests.git

Git Credential Manager users — A new window will open and ask you to log into bitbucket.org and authorize the connection.

Clone over SSH

1$ git clone [email protected]:teamsinspace/documentation-tests.git

If the clone was successful, a new sub-directory appears on your local drive in the directory where you cloned your repository.This directory has the same name as the Bitbucket repository that you cloned. The clone contains the files and metadata that Git requires to maintain the changes you make to the source files.

Clone a repository with Sourcetree

You can also use Sourcetree to clone your repository. If you aren't familiar with Sourcetree, it's our client that provides an alternative to the command line. Follow these instructions to clone your repository. If you don't have SourceTree,download the application first.

  1. From the repository, select theClonebutton.

  2. In theClone this repositorydialog, selecttheClone in Sourcetreebutton.

  3. If necessary, update theDestination PathorBookmark Name.

    1. TheDestination Pathisthe folder where your clone saves to your local system.

    2. TheBookmark Nameis the name of that folder.

  4. Select the Clone button.

Sourcetree creates the folder on your local system. You can use the Sourcetree to interact with therepository.

Clone a Git repository | Bitbucket Cloud | Atlassian Support (1)

A. Branches list:Lists your Git branches.
B. Files list:Includes all the files in your repository.
C. Action buttons:Allows you to interact with the repository.
D. Commits list:Includes a list of commits to the repository and details of each commit.
E. Selected file:Shows a diff of the selected file.

Clone a repository with VS Code

You can also use Visual Studio (VS) Code to clone your repository. If you aren't familiar with VS Code, it's a source code editor developed by Microsoft that provides an alternative to the command line. Follow these instructions to clone your repository. If you don't have Visual Studio Code,download the application first.

  1. From the repository, select theClonebutton.

  2. In theClone this repositorydialog, selecttheClone in VS Codebutton.

    1. If you have not already installed the Atlassian for VS Code extension, you will be prompted to install it. Select Install > select the Reload Window and Open button in the info dialog.

  3. In VS Code, select Clone a new copy from the dropdown menu.

  4. When prompted, select the local storage location where you want to keep the cloned repository.

  5. Select theSelect repository locationbutton.

  6. Your repository will be cloned and stored in the location you chose. You can then open the repository and begin working on it in VS Code.

You may be prompted to log in to your Bitbucket Cloud account so VS Code can access the necessary data to clone your repository.

Clone a Git repository | Bitbucket Cloud | Atlassian Support (2024)
Top Articles
Google Drive review
Mutual Funds: Which debt fund categories are best for long-term goals? | Mint
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Lakeisha Bayer VM

Last Updated:

Views: 5759

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.