Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I clone a branch of repository?

rahilrafiq
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!
September 20, 2019

I have created a new repo in bitbucket. I created a file in master branch of my newly created repo. Now I have created another branch "test" in my repo and added files in it, now I want to share it with my peers. How can I share it with my peers?

Thanks 

1 answer

1 accepted

1 vote
Answer accepted
Brandy Pearson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2019

Hey rahilrafiq, 

I don't think your peers will be able to clone the branch directly. Instead, they should pull the entire repo with `git clone` and then switch to the branch you created with `git checkout branch-name-you-created`.
You can read more about the `git checkout` command here: https://www.atlassian.com/git/tutorials/using-branches/git-checkout

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events