Fill these in once
- Find the commit you want to undo
git log --oneline -15Copy the short ID at the start of its line.
- Make a new commit that reverses it
git revert a1b2c3dGit opens an editor for the message. Save and close it to finish.
- Share it
git push
Check it worked
- See the history
git log --oneline -3The top commit starts with Revert.
Undo it
- Stop a revert that hit a conflict
git revert --abort
- Find the commit you want to undo
git log --oneline -15Copy the short ID at the start of its line.
- Make a new commit that reverses it
git revert a1b2c3dGit opens an editor for the message. Save and close it to finish.
- Share it
git push
Check it worked
- See the history
git log --oneline -3The top commit starts with Revert.
Undo it
- Stop a revert that hit a conflict
git revert --abort
- Find the commit you want to undo
git log --oneline -15Copy the short ID at the start of its line.
- Make a new commit that reverses it
git revert a1b2c3dGit opens an editor for the message. Save and close it to finish.
- Share it
git push
Check it worked
- See the history
git log --oneline -3The top commit starts with Revert.
Undo it
- Stop a revert that hit a conflict
git revert --abort