Skip to content

Instantly share code, notes, and snippets.

@xiaoda
Created March 7, 2017 05:18
Show Gist options
  • Save xiaoda/580250c2a1abdb324d027508ed61c629 to your computer and use it in GitHub Desktop.
Save xiaoda/580250c2a1abdb324d027508ed61c629 to your computer and use it in GitHub Desktop.
# 链接: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