mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-22 16:20:19 +01:00
6 lines
294 B
Text
6 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.
|