使用git log查看需要回滚一次提交的commit id 运行命令git reset --hard <commit_id>git push origin HEAD --force 强制提交一次,之前错误的提交就从远程仓库删除 相关文章: