GIT 中提交的 parents 和 children 的数量

Number of parents and children of a commit in GIT

如有错误请指正:

一个commit的parents个数可以是:

parents个数不能超过2个

children的个数可以是任意non-negative个数。

parent个数可以是任意non-negative个数,见octopus strat,随时可以添加0-parent个commit,尽管对这种用法存在合理的争论,但此类争论往往倾向于实用性。