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 中的当前分支并接受 HEAD 处理所有合并冲突?基本上这说明我知道我在做什么,而不关心我正在合并的另一个分支中的内容,接受来自当前分支的 HEAD 的所有内容,并且不要抱怨合并冲突。
从git merge的文档中:
$ git merge -s ours <branch name>