Created
September 15, 2014 15:00
-
-
Save nelanka/dc1ff3875348cb2196ad to your computer and use it in GitHub Desktop.
Git Recipe - Revert Several Commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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