使用git log或者git reflog查看commit信息,以及commit 的标号
git reset --hard xxxx
git push -f
如果删除分支上的commit
git push origin yyy -f
-f 为强制推送,覆盖