我有两个提交:
[branch]: [commit_id]
justin: 94943b74ba273a9f4009
jzbranch: 6070aada7b8a690d410b如何将这两个分支合并到jzbranch中,并解决两者之间的差异?
发布于 2011-08-25 17:34:37
如何将两个具有特定提交I的分支合并为一个分支?
git checkout jzbranch
git merge [commit_id] jzbranch或
git merge [commit_id] 6070aada7b8a690d410b因为git允许将多个分支/提交合并到一个分支。
然后运行git mergetool或简单的git status (在第二种情况下,你只会看到冲突的文件,然后你可以用你喜欢的任何编辑器打开这些文件)。我更喜欢第二种方式。
在此之后,强制执行新提交
发布于 2011-08-25 00:51:07
贾斯汀的git checkout jzbranch
git merge justin
git mergetool,使用git commit提交最终合并。发布于 2011-08-25 00:52:33
git branch newbranch 6070aada7b8a690d410b
git checkout newbranch
git merge 94943b74ba273a9f4009https://stackoverflow.com/questions/7179176
复制相似问题