Skip to content

Glossary: Git Beyond the Basics

mainline parent

Also written: revert -m 1

A merge commit's first parent, the branch you merged into. `git revert -m 1` keeps it when undoing a merge already on shared main.

Where the book teaches it

Related terms

ORIG_HEADgit revertmerge commit