Forums

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

Recover a deleted branch

Ray Lee August 23, 2019 edited

Hello,

May I know if there is a feature that there is backup/retention function that can recover a deleted branch from Stash or BitBucket in case a user wrongly to delete the branch ? 

Thanks, 

Ray

2 answers

0 votes
Jughe
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!
October 28, 2019

Hi, if you have a clone you can still find your deleted branch, it's still here in your device. While if you can not find them everyehere, maybe you can use third-party tool. But I am not sure whether that way works, if you want a try, you can apply the Bitwar data recovery, I think it does well in recovering deleted files.

0 votes
Mikael Sandberg
Community Champion
August 23, 2019

If you still have a clone that still has the branch it can be recreated that way. Deleting a branch in Bitbucket will not delete it on any of the clones. Git do not keep track of deleted branches, they are just pointer to specific commits.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events