3 ms·
> The feature branch brances off of main, so main is not a leaf anymore) But "main" remains a "head" even though the feature branch "continues the graph" from
by galaxyLogic 3y ago
> The feature branch brances off of main, so main is not a leaf anymore)
But "main" remains a "head" even though the feature branch "continues the graph" from it?
So there must be a difference between "Adding a new commit" and "Branching a new commit". I think I got it now. Thanks
- dasil003 3y agoThere’s no “branching a new commit” (except as syntactic sugar). Creating a branch creates a new head pointing to an arbitrary commit (even one that already has one or more heads). Committing creates a new commit and moves exactly one head forward to it.