Commands.app

git revert

Workflow

Revert commits by creating new commit

Examples
Common usage examples

Revert last commit

git revert HEAD

Revert specific commit

git revert <commit-hash>
Notes
  • Creates a new commit that undoes changes
  • Safer than git reset for public branches
Related Commands
You might also find these useful