The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When clone a repository to desktop, does that include all branches or just master?

mdenson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2025

When cloning a repository (master) to desktop, does that include all branches or just the master branch?

If not all branches cloned with master, if a copy of the branch is desired, can that be cloned separately? and must it be cloned to a separate folder (repo) on the desktop from the master?

 

Thank you

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2025

G'day, @mdenson 

Welcome to the community!

When cloning a repository with Git, you copy the entire repository, including all branches, tags, and its full history. However, Git only checks out the default branch, such as "main," by default. To list the branches in your cloned repository, use the following command:

git branch -a

Regards,
Syahrul

0 votes
Mikael Sandberg
Community Champion
June 17, 2025

Hi @mdenson,

Welcome to Atlassian Community!

Clones are always a complete copy of the repository unless you specify to only clone with a specific branch. 

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events