gitlab回归上一次提交

git log      # 查看提交的记录

git reset --hard  { commit}  #上面log中的commit   id号

此时本地文件已经回滚到刚刚commit 之后的状态,但是服务器仍然没有改变,需要继续远程回滚:git push -f
原文地址:https://www.cnblogs.com/tarzen213/p/13385631.html