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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,555,397
Community Members
 
Community Events
184
Community Groups

'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?

9 answers

1 accepted

18 votes
Answer accepted
rrudnicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 07, 2015

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 squiggle400 likes this

Technically it did work and got me past that error.

However, it now shows a ton of stuff that I didn't change nor do I want to commit. When I just try to stash everything to get back to where I was it tells me "You do not have the initial commit yet". This reset resets more than I realized it would and caused different issue. 

Im getting an errorcode 128, "ref/heads ... does not point to a valid object!"

Could it be its looking for a remote tree which has been deleted? I noticed the branch i was in has been merged already. I tried a git reset, didnt solve it.

 

errorcode-128.png

 

The issue im having is that my local list of branches is completely empty now. 

Please Help Me I Am getting this error on every next day. And I Have To Take Re-Clone My Project Every Time.

image.png

Check that you have an access to drive E:

The fix did NOT work for me.   Any other suggestions?

 

When I try it, the git reset command gets "fatal: unterminated line in .git/packed-refs"

Works for me. Thanks.

It also worked for me 

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

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 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!

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

rrudnicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 21, 2015

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 :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events