git checkout test1

#把test1重置为test2

git reset --hard orgin/test2

#这一步不要git pull 直接强推

git push --force

-----------小乌龟git秀一波--------

git重置分支代码

git重置分支代码





相关文章:

  • 2021-08-24
  • 2021-05-11
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-04
  • 2021-08-04
  • 2021-12-21
  • 2021-08-20
  • 2021-11-20
  • 2022-01-01
相关资源
相似解决方案