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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.