将项目从git迁移到gitlab步骤:

第一步:克隆老项目

git clone --mirror https://XXXX/project.git

第二步:设置新的地址
git remote set-url --push origin http://new_XXXXXX/project.git

第三步:push
git push --mirror  http://new_XXXXXX/project.git

第四步:让其他同事执行以下操作,将git地址更新为新的git地址
git remote set-url origin http://new_XXXXXX/project.git

相关文章:

  • 2022-12-23
  • 2021-11-03
  • 2021-12-21
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-05-05
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-07-15
  • 2021-08-09
  • 2022-12-23
相关资源
相似解决方案