AI engineering glossary · Command line Git

What is revert?

Revert (also called git revert): Undoing a commit by creating a new commit that applies the opposite changes. Unlike reset it leaves history intact, so it is the safe way to undo something already shared with others.

Level: intermediateTopic: Command line Git

Revert: an example

git revert a1b2c3d adds a commit that cancels the changes of a1b2c3d.

Related terms

More Command line Git terms

Where you learn it

Revert is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.