Linear history vs branching
ID: git-tips/linear-history-vs-branching
Git tips Linear history vs branching by
Ciro Santilli 36 Updated 2025-04-24 +Created 1970-01-01
Some people like merges, but they are ugly and stupid. Rebase instead and keep linear history.
Linear history:
5 master
|
4
|
3
|
2
|
1 first commit
Branched history:
7 master
|\
| \
6 \
|\ \
| | |
3 4 5
| | |
| / /
|/ /
2 /
| /
1/ first commit
Which type of tree do you think will be easier to understand and maintain?
????
????????????
You may disconnect now if you still like branched history.
New to topics? Read the docs here!