git继续用其不友好的错误警告让我感到困惑,这个错误真的值得奖励:
git merge is not possible because you have unmerged files
我的情况:我的GitHub主分支在本地主分支也被编辑时进行了编辑(直接在浏览器中)。
我错误地认为你可以简单地合并这两个版本,然后就完成了,但是,我无法合并 - 因为我的文件没有合并。
git merge remote/master
导致error: merge is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
所以,在添加并提交本地更改后,尝试再次合并,我得到了以下结果:
所以,在添加并提交本地更改后,尝试再次合并,我得到:
merge: remote/master - not something we can merge
很明显,我在这里缺少一些重要的东西...我对合并的含义有错误的理解吗?我如何解决这个不同的远程主分支/本地主分支问题?