Requirement: Revert particular commit in local by commit ID.
Description:
- I have a branch cloned in my local from some repo.
- I made some changes and committed time to time (Not pushed)
E.g.
- Made some changes and committed. i.e. Commit ID: xyz-1
- Made some changes and committed. i.e. Commit ID: xyz-2
- Made some changes and committed. i.e. Commit ID: xyz-3
- Made some changes and committed. i.e. Commit ID: xyz-4
Goal: Need to revert “xyz-2 and xyz-3” but “xyz-1 and xyz-4” will stay as it is.