- Make a commit that reverses the last one
git revert HEAD --no-edit - Share it
git push
Check it worked
- See the history
git log --oneline -3The top commit says Revert, followed by the one it undid.
Undo it
- Bring the change back
git revert HEAD --no-editReverting the revert puts the original change back.
- Make a commit that reverses the last one
git revert HEAD --no-edit - Share it
git push
Check it worked
- See the history
git log --oneline -3The top commit says Revert, followed by the one it undid.
Undo it
- Bring the change back
git revert HEAD --no-editReverting the revert puts the original change back.
- Make a commit that reverses the last one
git revert HEAD --no-edit - Share it
git push
Check it worked
- See the history
git log --oneline -3The top commit says Revert, followed by the one it undid.
Undo it
- Bring the change back
git revert HEAD --no-editReverting the revert puts the original change back.

New to rollbacks? I explain it in plain English on Layman Terms.