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显然我错过了一些重要的东西..。我对合并意味着什么有错误的想法吗?如何解决拥有不同的远程主/本地主分支的问题?
发布于 2022-09-15 07:26:48
试一试
git add *
git commit -comment
git pull说明git *:意味着要添加所有未添加的文件‘git提交-comment :您正在提交文件,您刚刚添加了git拉:您现在正在从在线版本中获得更改
https://stackoverflow.com/questions/36086202
复制相似问题