1. 先显示提交的log

  git  log

2.回滚到指定的版本

   git reset --hart  e377f6,.........

3.强制提交

   git  push  --force

4. git报错,需要进入gitlab项目设置,protected branches里取消master的protected,设置

git远程master回滚
git远程master回滚

相关文章: