parent commit

The commit that came immediately before another one, recorded by ID inside it.

In more detail

An ordinary commit has one parent, a merge commit has two, and the very first commit has none. Because each commit names its parent by ID, changing an old commit changes every commit after it. HEAD~1 means the first parent of HEAD.

Related terms

Taught in

References