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

How can a whole branch commits disapear ?

Jonathan PRIOU
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!
July 28, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 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

0 votes
Jonathan PRIOU
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!
August 18, 2021

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
AUG Leaders

Upcoming Bitbucket Events