克隆老仓库(裸仓库):
git clone --bare git@codehub.devcloud.huaweicloud.com:e2f197xxxxxxx19fc4ae7348b2ed41/Node_admin-integral-mall.git
进去克隆下来的裸仓库中:
cd Node_admin-integral-mall.git/
传到新仓库中:
git push --mirror git@codehub.devcloud.huaweicloud.com:jxxxxxxxx/Node_admin-integral-mall.git
删除克隆下来的老仓库:
rm -rf xxx

 

 

该方法会把老仓库中的所有分支原封不动的转到新仓库中

 

 

欢迎加入QQ群一起讨论Linux、开源等技术

项目代码迁移(使用git)

相关文章:

  • 2021-07-15
  • 2021-08-09
  • 2021-07-17
  • 2021-12-05
  • 2021-09-04
  • 2021-04-13
  • 2021-06-10
  • 2021-07-24
猜你喜欢
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-02-05
  • 2022-12-23
  • 2021-06-09
相关资源
相似解决方案