I've been attempting the branching model as described in the following article: http://nvie.com/posts/a-successful-git-branching-model/
- I made a new branch called items from master, made a few commits over there
- Went back to branch master and made a single commit
git merge --no-ff
the branch item then resolve any merge conflicts
I assumed that all merged commits from the other branch would be brought in together in order, however that does not seem the case. The following is the output of git log
:
f28e150 Merge branch 'items'
8281666 [Master] Another middle commit before merge
73d0ca9 [items] commit 2
0442978 [items] commit 1
Why are the first two commits of item branch showing before the master branch? Wouldn't it make more sense to show them together under the merge commit since thats when I merged it all with my code?
Calling the graph option: git log --graph
shows it in the correct order
* f28e150 Merge branch 'items'
|\
| * 73d0ca9 [items] commit 2
| * 0442978 [items] commit 1
* | 8281666 [Master] Another middle commit before merge
|/
The reason I want them all together is to make it easier for me to undo the entire merge