Suddenly all branches except develop and master disappeared

abhi_saini
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!
May 27, 2024

Hi, Suddenly all my open branches except develop and master are disappeared from bitbucket.

I have tried to restore a few by pushing the branches that were available on my local. So now they are there. But how to recover all those other branches which were there until Yesterday Morning.

 

Thanks

2 answers

0 votes
Daria Kulikova_GitProtect_io
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 3, 2024

Hello @abhi_saini  and welcome to the Atlassian Community!

Hope you managed to get your Bitbucket data back.

As an option to have full control over your data in case of an accedental deletion (or any other event of failure), it's worth having a backup solution in place. For example, GitProtect backup and Disaster Recovery software for Bitbucket, Jira Software, JWM, and JSM, permits to restore your data from any point in time fully or granularly to the same or a new account, to your local machine or cross-overly to another platform (GitHub or GitLab).  

Moreover, with GitProtect backups you can easily schedule and automate your backup policies, back up your data to multiple storage destinations, ensure data replication between storages, unlimited retention, private AES encryption key, ransomware protection, etc. You can read more about backup best practices and how GitProtect meets them in this article: https://gitprotect.io/blog/bitbucket-backup-best-practices/

Learn more about GitProtect backup and DR software on Atlassian Marketplace: https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud&tab=overview

If you have any questions regarding Bitbucket backup, you can schedule a live demo anytime.

Kind regards,

Daria

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2024

Hi @abhi_saini and welcome to the community!

We recently started rolling out a change, we are scoping the Commits list page to the repository’s main branch. I am wondering if this change caused confusion while the branches are still there. Can you please double-check the following:

  • On the Commits page of the repo, there is a dropdown at the top that shows either a certain branch's name or the text "All branches". If this dropdown shows the name of a branch, can you select the text Show all next to it?

  • On the Branches page of the repo, can you select the dropdown with the text Active branches and then select All branches? Do you see your branches then?

 

If you still can't see your other branches:

  • Check with other users who have access to the repo (if any) and ask them if they have the other branches available in a local clone so that they push them to Bitbucket.

  • If none of the other users have these branches locally, please let me know, and I can create a support ticket for you so that we can check whether it's possible to restore an earlier backup of the repo. Please let me know as soon as possible, as the backups we have available for restoring are from the last seven days only.

Kind regards,
Theodora

abhi_saini
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!
May 29, 2024

Hi,

Thanks for your answer.
I have tried clicking on Commits and then Show all but that is not helpful because I was trying to locate some very old branches and I see only new branches in the list which we have already pushed from local.

On the Branches page, I have also tried changing the dropdown to All branches, that also doesn't show me my old branches which were available till last week.

About your suggestion:
we have already pushed all the latest branches which were available on our local but again it is about those old branches which were on hold due to priorities.

About restoring the backup:
I need to know who deleted them and when the branches were deleted because I can not see the logs about who deleted them. For restoring the backup, we should do it only if it doesn't remove our new commits and new branches that were added after the backup was created. Otherwise we should not do it.

Thanks

Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2024

Hey @abhi_saini 

I have raised a support ticket on behalf of Theodora to help you investigate the missing branch. You can find the support ticket in our Support portal at:

https://support.atlassian.com/requests

Regardss<
Syahrul

Suggest an answer

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

Atlassian Community Events