使用 git clone --bare 命令clone当前git

git clone --bare http://gitlab.xxx/demo.git

推到新的git地址

cd demo.git

git push --mirror https://gitee.com/xxx/demo_new.git

所有分支、提交历史全部都会保留的。

 

相关文章:

  • 2022-12-23
  • 2021-04-30
  • 2022-01-31
  • 2022-12-23
  • 2021-05-05
  • 2021-11-03
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-06-09
  • 2021-07-15
  • 2021-11-17
相关资源
相似解决方案