Git/Revert
- Create new commits that revert previous commits.
- e.g. Given git history
1111111 < HEAD / Master Tip
- 2222222 Previous commit
- 3333333 Preiouus commit
- 4444444 The commit we want to revert to
- Run the steps
- Checkout latest master and update, should be on 1111111
Create new branch git checkout -b "RevertChanges_to_4444444"
Revert changes git revert 4444444..HEAD
- Push the branch and create PR to commit all the reversed changes.