当前位置:   article > 正文

gitlab repository 迁移过程_gitlib 仓库迁移repositories

gitlib 仓库迁移repositories

今天有机会尝试了一下gitlab 上的 repository 迁移。步骤如下

  1. 将代码从原来的repo 克隆到本地
    git clone ssh://git@git.xx.net:18022/cplm/aps-kitchen.git

  2. 进入到要迁移的branch
    git checkout test

  3. 清除原始repo link
    git remote rm origin

  4. 增加新的repo link
    git remote add origin ssh://git@git.xxx.net:18022/APS-AI/xxx.git

  5. 强制将本地代码推到线上
    git push -f --set-upstream origin test:test

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/636722
推荐阅读
相关标签
  

闽ICP备14008679号