Buran
Buran

Reputation: 156

Number of parents and children of a commit in GIT

Please correct me if I am wrong:

The number of parents of a commit can be:

The number of parents cannot be more than 2.

The number of children can be any non-negative number.

Upvotes: 2

Views: 497

Answers (1)

jthill
jthill

Reputation: 60255

The number of parents can be any non-negative number, see the octopus strat, and a 0-parent commit can be added at any time, though there's legitimate debate over that usage such debates tend to be settled in favor of usefulness.

Upvotes: 3

Related Questions