Git 2 · Undoing changes

Revert a commit safely

Create a new commit that undoes an earlier one. Safe on shared branches.

git revert abc1234

Official Git 2 documentation

More undoing changes commands

All undoing changes commands · Git 2 cheatsheet

Was this page helpful?