oh-my-git/levels/commit-rhombus/description

6 lines
294 B
Text
Raw Normal View History

2020-09-15 16:32:00 +02:00
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.