如果我从另一个分支完成git合并的情况下会发生什么,事情发生了一些冲突,但合并不会被提交,而然后我做

git reset --hard HEAD
.

我可以再做一次合并吗?或者会施意认为合并已经完成了?

有帮助吗?

解决方案

Your working copy will be reset to the state at HEAD, and no merge will be done. the working copy+index is at the same state is if you never had run git merge.

You can redo the same merge afterwards.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top