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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I clone a branch of repository?

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

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
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,804 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you