1.使用如下命令查看提交的日志,找到要回滚的commit id
git log --pretty=oneline
2.使用如下命令hard后边跟上commit对于的id
git reset --hard 4ff191db3********f6a7721175ea08f3e
3.使用如下命令强制推送到git上
git push -f
4.查看远程git上已经回滚到指定commit的版本了
1.使用如下命令查看提交的日志,找到要回滚的commit id
git log --pretty=oneline
2.使用如下命令hard后边跟上commit对于的id
git reset --hard 4ff191db3********f6a7721175ea08f3e
3.使用如下命令强制推送到git上
git push -f
4.查看远程git上已经回滚到指定commit的版本了