使用 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刪除。