Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to transfer or retain local branches when switching machines?

I switched laptops and pulled my remote repo, however I will be losing an abundance of local branches which I was hoping to keep. Is there a way for me to retain those in the SourceTree on my new machine?

(I delete my remotes after completing PRs so I can't just pull them all and checkout local copies)

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Sep 21, 2020

Your branches are stored in your local repository, not in Sourcetree. So the only way to retain your branches is to move your local repositories over to your new machine.

Ahhhh ok, Thanks! I'll update my repo and then transfer the folder! 

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events