使用 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
所有分支、提交历史全部都会保留的。
使用 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
所有分支、提交历史全部都会保留的。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。