Last active
February 3, 2026 12:40
-
-
Save pablocattaneo/fcb006cd04df9456041ce3c52bacd4f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # git revert creates a new commit that undoes the changes from a specific commit. It doesn't remove commits from history or revert "until" a point. | |
| # How git revert works: | |
| # Creates a new commit that reverses the changes | |
| # Doesn't delete or remove commits from history | |
| # Works on specific commits, not ranges | |
| # Important: Order matters | |
| # Revert in reverse chronological order (newest first) to avoid conflicts: | |
| git revert [commit hash] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment