Git 抛出一个错误:
fatal: multiple stage entries for merged file
我一直在旁边 ( Getting a fatal error in git for multiple stage entries ) 并阅读了解决方法:
cd /patH/to/second/cloned/repo
git --work-tree=/path/to/first/repo add .
现在,可以通过状态查询更改,但在那之后我现在必须做什么?当我使用 git add 时,一切都会回到上一个版本。所有的变化都消失了。更改已删除,我的新 repo 再次具有旧状态。我如何将所有更改放入新存储库? 我在 OS X 10.10 上使用 git 版本 2.2.0。
最佳答案
我解决了这个问题:
在您的终端中,输入:
rm .git/index (press enter key)
git add -A (press enter key)
git commit -m "your commit instruction"
关于混帐致命 : multiple stage entries for merged file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29316831/