Created
March 7, 2017 05:18
-
-
Save xiaoda/580250c2a1abdb324d027508ed61c629 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# 方法一 | |
git checkout -f A -- . | |
git commit -a | |
# 方法二 | |
git reset --hard A | |
git reset --soft @{1} | |
git commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment