admin管理员组文章数量:1356755
I have merged a branch to master on GitHub and wanted to do a git pull locally after that. When I did a git pull it asked me to mit changes, so I have added files and mitted.
But something happened, and I am stuck kind of in the middle of the merge, although the merge is pleted. I have an empty staging and when I try to do a git pull I get this error:
❯ git pull
error: You have not concluded your merge (MERGE_HEAD exists).
hint: Please, mit your changes before merging.
fatal: Exiting because of unfinished merge.
❯ git pull --force
error: You have not concluded your merge (MERGE_HEAD exists).
hint: Please, mit your changes before merging.
fatal: Exiting because of unfinished merge.
and on the line where I write in the console by the branch name I have
master merge
Can someone tell me what is happening here and how to solve this problem? Thanks.
I have merged a branch to master on GitHub and wanted to do a git pull locally after that. When I did a git pull it asked me to mit changes, so I have added files and mitted.
But something happened, and I am stuck kind of in the middle of the merge, although the merge is pleted. I have an empty staging and when I try to do a git pull I get this error:
❯ git pull
error: You have not concluded your merge (MERGE_HEAD exists).
hint: Please, mit your changes before merging.
fatal: Exiting because of unfinished merge.
❯ git pull --force
error: You have not concluded your merge (MERGE_HEAD exists).
hint: Please, mit your changes before merging.
fatal: Exiting because of unfinished merge.
and on the line where I write in the console by the branch name I have
master merge
Can someone tell me what is happening here and how to solve this problem? Thanks.
Share Improve this question edited Mar 20, 2022 at 21:27 Christian 5,5414 gold badges29 silver badges44 bronze badges asked Mar 20, 2022 at 21:00 sevenseven 1,7043 gold badges23 silver badges53 bronze badges 1-
What is the output of
git status
? – mkrieger1 Commented Mar 20, 2022 at 21:07
1 Answer
Reset to default 5Have you tried git merge --abort
and tried to pull again?
From www.git-tower. about merge-conflicts:
You should always keep in mind that you can return to the state before you started the merge at any time. This should give you the confidence that you can't break anything. On the mand line, a simple
git merge --abort
will do this for you.
See also You have not concluded your merge (MERGE_HEAD exists)
本文标签:
版权声明:本文标题:javascript - Problem after git merge: unable to pull because unfinished merge and no staged files - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744069471a2585623.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论