使用 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
所有分支、提交历史全部都会保留的。