混帐致命 : multiple stage entries for merged file

标签 git macos

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/

相关文章:

Java 控制面板和命令行在 Mac OS X 10.9.5 上显示不同的 Java 1.7 版本。这是怎么回事?

git - 分支正在 git push 上 merge 到自己中

Git 外壳 : git-shell-commands should exist rather than "What do you think I am? A shell?"

git - 与团队共享 MongoDB 更改

c - 使用 SecItemImport 导入 PKCS12

ruby - rvm install 2.1.4 <--- 在 Mac OS X mavericks 上失败

git - 从命令行推送到 GitHub 时如何播放自定义 MP3?

git 撤消对过去提交的 checkout

macos - 如何在终端中创建 Mac OS X "Alias"类型文件?

macos - CIImageAccumulator 的作用是什么?