|
|
|
|
|
by mtnygard
939 days ago
|
|
I have found that git makes a lot more sense if you reverse the mental model of lineage. People think about a lineage going forward. But a more useful way to think is in terms of backward pointers. A commit points to it's parent(s). Since a branch is just a commit ID, you can follow the parent links backwards to find the whole history of that branch. So a "branch point" is just where two chains of parent links converge. The special part are merge commits. Those have multiple parents, indicating that two histories fused into one. |
|
If, for example, you have a structure like
then conceptually the path CA might be one branch and DB the other branch (or alternatively, CB and DA). But this is not something that is represented in Git’s model.