git revert
WorkflowRevert commits by creating new commit
Examples
Common usage examples
Revert last commit
git revert HEADRevert 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