CheatSnip

Related

Commit Changes

git

Create a commit to permanently record staged changes in the repository history with a descriptive message

Show Commit Details

git

Show various types of objects

Binary Search for Bugs

git

Use binary search to find the specific commit that introduced a bug or regression

git/revert

Revert Commit

Create new commit that undoes changes

git
revert
commit

Command

git revert

Explanation

git revert is used to create a new commit that undoes changes. It creates a new commit that undoes the changes.

Examples

Revert specific commit

git revert abc123

Revert last commit

git revert HEAD

More

View Commit History

git

Show commit logs

Initialize Repository

git

Create an empty Git repository in a directory to start version controlling your project

Show Changes

git

Show changes between commits

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers