1、本地代码回滚到上一版本(或者指定版本) git reset --hard HEAD~1 2、加入-f参数,强制提交,远程端将强制跟新到reset版本 git push -f origin master