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

'git status' failed with code 128: error: bad signature fatal: index file corrupt

The moment I start up my sourceTree, I get this error. How to resolve it without damaging my current project files?

6 answers

1 accepted

12 votes
Answer accepted

Hi Ralph, 

 

If the problem is with the index as the staging area for commits (i.e. .git/index), you can simply remove the index (make a backup copy if you want), and then restore index to version in the last commit. On SourceTree shell run:

On OSX/Linux:

rm -f .git/index
git reset

On Windows:

del .git\index
git reset

(The reset command above is the same as git reset --mixed HEAD)

 

 

Cheers, 
Renato Rudnicki 

Thanks, this solved the problem however it surprises me that I had to use the OSX/Linux command on my windows machine.

 

Like Ts'epo Mphongoa likes this

Use OSX/Linux command on my windows machine +1

git reset


error: inflate: data stream error (invalid code lengths set)
error: unable to unpack 64e00659b39bc2ec92b15903426745a9ca0e7469 header
error: inflate: data stream error (invalid code lengths set)
fatal: loose object 64e00659b39bc2ec92b15903426745a9ca0e7469 (stored in .git/objects/64/e00659b39bc2ec92b15903426745a9ca0e7469) is corrupt

I too had to use the Above OSX/Linux command on my machine as well....

Like Squiggle Squiggle likes this

Thanks.. It worked.. Sorry for the late reply

Hi Ralph, glad to hear that :) If you don't mind, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

just did.. sorry :)

I deleted my project (root folder) and created it again. It was the fastest and simplest way in my case.

Save all you changes, before you delete you project!

I get this all the time.

I almost hate it already!

Steps to reproduce are simple.

Just create a new branch, commit something, then switch to develop, merge your branch to develop and delete it. And observe the bug.

The only way to fix is to delete the wholerepo fromsourcetreeand add it again.

Can the issue be fixed? Please?

I restarted my windows system and then opened the source tree. It is automatically resolved !!

Works for me. Thanks.

It also worked for me 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

929 views 0 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