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

Frequent local GIT repo corruptions

Rip July 1, 2020

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

0 votes
abhi_12 September 25, 2020

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

Atlassian Community Events