I have this:
A - B - C - F - G (master)
\
D - E (BranchB, origin/BranchB)
I want to have this:
A - B - C - F - G (master)
\
D' - E' (BranchB, origin/BranchB)
Is it possible and how?
I thought that process could work:
git checkout BranchB
git rebase master BranchB
# I solve conflicts and "git add ...".
# Then, to finish the rebase:
git rebase --continue
git pull --rebase
git push
But I have this:
A - B - C - F - G (master)
\
D - E - F' - G' (BranchB, origin/BranchB)
Which is not exactly the result I want.
NB:
- To see graphs in CLI:
git log --oneline --graph --decorate --all
git log --pretty=oneline --graph --decorate --all
- Interesting link here.
Answer of rafasc on Freenode/#git (thx to him):
Interesting link about
pull = fetch+merge
Sometimes after a
git rebase --continue
, I have this kind of error:You have to resolve another conflicts (
vim ... && git add ...
) and launch: