root commit

A commit with no parent, normally the very first commit in a repository.

In more detail

git cat-file -p on it shows a tree line but no parent line, and asking for HEAD~1 from it fails because there is nothing before it. Every repository has at least one, and a merge of unrelated histories can create more.

Related terms

Taught in

References