如何撤消几个Git命令?
这个问题在这里已经有了答案:
  要从最后一次已知的良好提交中撤销特定的提交,首先查看git log ,您应该在shell中看到以下内容: 
commit: your40characterSHA1codehere # copy this into the clipboard
Author: your name here with email address
date: date-here
Commit message here
  你应该复制commit sha1代码,然后执行git reset --hard your40characterSHA1codehere和git push origin master --force来强制推送你所工作的主分支或其他分支。  希望这可以帮助! 
