When rebasing my_branch
on other_branch
, i.e.:
git rebase other_branch
if there is a conflict, I get the markers
<<<<<<< HEAD
stuff_1
=====
stuff_2
>>>>>>> Some commit message
Q1 First question: Is stuff_1
from my_branch
or from other_branch
?
I also notice that, when this happens, my HEAD
now points to some unnamed commit, in my case 65c47727a2500691233cfed2a2cfe7686b7fb92d
(which is the output of cat .git/HEAD
)
I also get:
> git status
rebase in progress; onto e41e19d
You are currently rebasing branch 'my_branch" on 'e41e19d'
...
Unmerged paths:
both added: some_file.sh
Q2 While I fix the rebase, why does my HEAD
point to some random commit?
Q3 What does Unmerged paths
and both added
mean in this context??