'git status' failed with code 128:'fatal: index

sourceTree

Kieran Senior [Atlassian]added a comment -18/Dec/2013 9:42 AM

Hey Ray,

This is because your index file has been corrupted. You could do the following. Using the terminal and changing your directory to your repository you can do the following (making sure you back up your repository first, just in case):

rm .git/index

git add .

Or if you have changes in your working directory you want to keep you can do the following:

rm .git/index

git rese tHEAD.

This can also be caused by conflicts with submodules, so if you have any submodules it might be worth looking into it.

Try that out and if it works if you could comment back to let me know that'd be great.

Thanks!

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,451评论 0 10
  • 隐约雷鸣,阴霾天空, 但盼风雨来,留你在此。 隐约雷鸣,阴霾天空, 即使天无雨,我亦留此地。 他存在于我所有记得住...
    夜凉未央阅读 294评论 2 2
  • 去年在金城兰州的这个季节 那是寒第一次与她相识在一家餐馆 从旁掠过时空气中弥留的香水味 让寒久久无法自拔难以忘怀 ...
    耐住寂寞方为妖阅读 232评论 0 0