Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我从另一个分支进行 git 合并会发生什么,发生一些冲突,合并没有被提交,然后我做
git reset --hard HEAD
我可以再次合并吗?还是 git 会相信合并已经完成?
您的工作副本将被重置为 HEAD 状态,并且不会进行任何合并。如果您从未运行过,则工作副本+索引处于相同状态git merge。
git merge
之后您可以重做相同的合并。