How to undo last commit
This question already has an answer here:
Warning: Don't do this if you've already pushed
You want to do:
git reset HEAD~
If you don't want the changes and blow everything away:
git reset --hard HEAD~
链接地址: http://www.djcxy.com/p/564.html
上一篇: 有没有办法将我最后一次推到Git?
下一篇: 如何撤消上次提交