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

by mistake one of my developer deleted the branch how to recover?

shubh December 11, 2022

by mistake one of my developer deleted the branch how to recover?

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 13, 2022

Hi @shubh and welcome to the community.

If the remote branch was deleted on Bitbucket Cloud website, as Hana mentioned, one of your developers may have it in their local clone, and they can push it again to Bitbucket.

If a local branch was deleted in a clone of the repo and the branch exists on Bitbucket, it can be pulled locally.

If a local branch was deleted before it was pushed to Bitbucket, you may be able to restore it from the git reflog or dangling commits, you can check the following KB for more details:

Kind regards,
Theodora

0 votes
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 11, 2022

Hi @shubh ,

welcome to the Atlassian Community!

If somebody has local copy of the repository, it can be easily pushed back.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events