atc0005 / notes

Various notes, quick references and topics I want to explore further
MIT License
0 stars 0 forks source link

Git | Revert a series of commits #28

Open atc0005 opened 4 years ago

atc0005 commented 4 years ago
  1. git log
  2. git checkout -b i125-restore-original-server-configuration
  3. git revert --no-commit --no-edit COMMIT_1
  4. git revert --no-commit --no-edit COMMIT_2
  5. git diff --staged
  6. git revert --continue

COMMIT_1 and COMMIT_2 are two specific commits that are to be rolled back together as a combined commit.

atc0005 commented 4 years ago

I used this doc as a guide: https://www.atlassian.com/git/tutorials/undoing-changes/git-revert