Skip to content

Glossary: Command Line and Git

git revert

Makes a new commit that does the exact opposite of an earlier commit. It is safe on shared history because nothing is rewritten.

Where the book teaches it

Related terms

revertgit commit --amend