1. test分支上的代码完全覆盖dev分支,首先切换到dev分支
      git checkout dev

    2. 然后直接设置代码给远程的test分支上的代码
      git reset --hard origin/test

    3. 执行上面的命令后dev分支上的代码就完全被test分支上的代码覆盖了,注意只是本地分支,这时候还需要将本地分支强行推到远程分支。
      git push -f

相关文章:

  • 2022-12-23
  • 2021-03-31
  • 2022-02-09
  • 2022-12-23
  • 2021-04-16
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
  • 2022-12-23
相关资源
相似解决方案