How to use Git Revert
git revert is used to undo a commit without losing changes or rewriting history. Instead of removing a commit, it creates a new commit that reverses the effects of the specified commit. This makes it a safer option, especially in shared repositories. Why Use git revert? Keeps commit history intact (unlike git reset).…
Answered Mar 18, 2025 · 738 Views Read answer →