What is undo in Git?

Git lets you undo almost anything. The safe way on shared code is to add a new commit that reverses the bad one.

In one line
Back out of a mistake safely.
Part of
Git & GitHub: How code is saved, shared and reviewed.

The full Undo page

Open Undo in the appFull basics lessons require a paid plan.

More in Git & GitHub11

How code is saved, shared and reviewed.

Pick your first three.