【发布时间】:2014-03-29 14:38:34
【问题描述】:
在other_branch 上重新设置my_branch 时,即:
git rebase other_branch
如果有冲突,我会得到标记
<<<<<<< HEAD
stuff_1
=====
stuff_2
>>>>>>> Some commit message
Q1 第一个问题:stuff_1 是来自 my_branch 还是来自 other_branch ?
我还注意到,当这种情况发生时,我的 HEAD 现在指向一些未命名的提交,在我的例子中是 65c47727a2500691233cfed2a2cfe7686b7fb92d(这是 cat .git/HEAD 的输出)
我也明白了:
> git status
rebase in progress; onto e41e19d
You are currently rebasing branch 'my_branch" on 'e41e19d'
...
Unmerged paths:
both added: some_file.sh
Q2虽然我修复了变基,但为什么我的 HEAD 指向一些随机提交?
Q3在这种情况下Unmerged paths 和both added 是什么意思??
【问题讨论】:
标签: git