git reset --hard aaaaaaa。强制恢复到要恢复的版本,其中aaaaaaa是要恢复版本的commit hash。 git push origin master --force。强行将本地当前恢复的版本推送覆盖远程仓库。