1.通过git log查到需要回滚的版本号

Git还原到指定版本

 

 

2、本地恢复到该节点状态:

git reset --hard fa4bf08fed85fc0ca5acde22464e68c6f8cfc8f2
3、强推到远程分支

<此时如果分支较远或者改动较多,使用git push origin可能会报错失败,此时可使用强推>

git push -f -u origin master

#如果你的不是master分支,改成你的就行

4.其他成员更新
git reset--hard  develop

 

相关文章:

  • 2022-12-23
  • 2021-08-07
  • 2021-11-17
  • 2021-06-24
  • 2021-05-03
  • 2022-02-19
  • 2022-12-23
猜你喜欢
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2021-11-15
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案