git master分支被污染,dev是最新稳定的, 操作步骤如下:

dev强制覆盖远程master

git push origin dev:master -f

切换到旧分支master

git checkout master

下载远程仓库最新内容,不做合并

git fetch --all

把HEAD指向master最新版本

git reset --hard origin/master

 

相关文章:

  • 2021-12-25
  • 2021-07-07
  • 2022-12-23
  • 2021-10-25
  • 2021-11-17
  • 2022-01-23
  • 2021-11-22
  • 2021-12-21
猜你喜欢
  • 2021-08-11
  • 2021-11-03
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案