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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Frequent local GIT repo corruptions

Edited

For last 2 weeks I am consistently seeing my git repo gettting corrupted.

So I freshly clone the repo successfully on my laptop.

Do few pushes to the remo repo.

Then I switch to other branch or checkout,it gives error like below:

 

error: inflate: data stream error (incorrect header check)error: unable to unpack 3267180250050c9fc45cd30d041fdb89fda926d4 headererror: inflate: data stream error (incorrect header check)error: unable to unpack 3267180250050c9fc45cd30d041fdb89fda926d4 headerfatal: loose object 3267180250050c9fc45cd30d041fdb89fda926d4 (stored in .git/objects/32/67180250050c9fc45cd30d041fdb89fda926d4) is corrupt.

 


If I then remove these objects,then I get unable to read tree.I almost tried every other thing on my machine but still I keep on getting it.Ultimately I have to clone my repo again But it is repeating again and again.It is impacting me severly.Does anyone has any clue why it is happening or what can be done to avoid this 

1 answer

Even this command git reflog expire --expire-unreachable=now --all also doesn't help in this.

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,755 views 10 16
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