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

shubh
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!
December 11, 2022

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

2 answers

1 vote
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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events