gitlab回归上一次提交

git log      # 查看提交的记录

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

此时本地文件已经回滚到刚刚commit 之后的状态,但是服务器仍然没有改变,需要继续远程回滚:git push -f

 

posted @ 2020-07-27 15:24  Tarzen  阅读(498)  评论(0编辑  收藏  举报