oh-my-git/levels/internals/commit-rhombus/description
2020-10-01 15:03:02 +02:00

5 lines
294 B
Text

A commit can have multiple parents! You can specify the -p option multiple times, like this:
git commit-tree <tree> -m "Description" -p <parent1> -p <parent2>
Build a rhombus shape from commits, where two commits point to the same parent, and then a fourth commit points to both of them.