今天早上,我开始从 git 中收到这个错误:
fatal: index file smaller than expected
fatal: git status --porcelain failed
知道发生了什么以及如何解决它吗?
最佳答案
索引文件已损坏,但很容易重新创建。只需删除它...
rm .git/index
然后您可以重新添加您尝试暂存的文件。
关于git - 索引文件小于预期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10076036/