Skip to content

Instantly share code, notes, and snippets.

@nelanka
Created September 15, 2014 15:00
Show Gist options
  • Save nelanka/dc1ff3875348cb2196ad to your computer and use it in GitHub Desktop.
Save nelanka/dc1ff3875348cb2196ad to your computer and use it in GitHub Desktop.
Git Recipe - Revert Several Commits
# http://stackoverflow.com/questions/1463340/revert-multiple-git-commits
# A <-- B <-- C <-- D <-- master <-- HEA
git revert --no-commit D
git revert --no-commit C
git revert --no-commit B
git commit -m'the commit message'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment