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
4,295,683
Community Members
 
Community Events
165
Community Groups

How can a whole branch commits disapear ?

Hi everyone,

a few hours ago, a whole branch on my workspace got emptied like nothing has ever been done with it. It's been used for a few months now, it's not merged, it still shows up, but it's empty. What's weird is that the source files for this branch are available and up to date.

I'm pretty worried to try to commit or update anything and lose my work for now and I'm stuck in my job. Any idea how to fix this would be very much apreciated.

Unfortunately this repository is private since it's company's private project. Let me know what information I should provide.

Thank you

2 answers

1 accepted

0 votes
Answer accepted
Mark C Atlassian Team Aug 18, 2021

Hi @Jonathan PRIOU,

Welcome to the community.

I'm sorry to know that you're stuck because of this.

We do have a known bug where recent commits are suddenly not showing on the UI. - https://jira.atlassian.com/browse/BCLOUD-19548
It could be caused by some stale cache on the repository and the workaround is to try to push a new commit or a new branch to the repository.


Before proceeding below, you can back up your repository by cloning it via --mirror clone.

git clone --mirror <your repository URL - HTTPS/SSH>


To see if what you're experiencing is related to the known bug, would it be possible for you to try to push a new commit or a new branch to your repository?

Do let me know how it goes.

Regards,
Mark C

Hi @Mark C ,

Thank you for your answer. Like I said, I did not dare to commit anything then because I was scared to lose my work.

However, I did repilicate the repository to a new one, since the source files in that branch where still showing, then every commits showed up properly in the new repository.

It seems your assumption about what's happening is correct, it's obviously only a display bug.

Thanks for your help.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,170 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you