Git项目迁移(把当前git项目迁移到新的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

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

 

posted @ 2020-08-13 15:12  天涯韵  阅读(1876)  评论(0编辑  收藏  举报