我不小心删除了.git/index,有办法恢复吗?它已被永久删除。我还没有做出任何事。
.git/index
要重建索引文件,您可以尝试以下两个命令:
git reset # re-scan the working directory git add -u # update the index