How to cancel a merge
This question already has an answer here:
From this Atlassian doc resource:
Hit 'Revert' on the toolbar, but then click on the 'Reset All' tab and use that. This will reset the merge metadata too.
By the way, you might handle this from the Git command line using:
git reset --hard HEAD
由于您有未提交的代码,因此您可以恢复到您的HEAD
> git reset --hard HEAD
You are in the merge process. If you need to abort the merge, You need to get out of the merge by using git merge --abort
.
If not do a git status git status
to figure out what the conflicts and changes are and then commit those changes to continue with the merge.
上一篇: 如何在解决我的合并冲突后完成合并?
下一篇: 如何取消合并