Loading
0

Gitlab仓库迁移

完整迁移:

1 从远程仓库A上克隆一个裸版本库  
    git clone --bare 远程仓库A的地址

2 进入克隆下来的项目本地目录
3 将本地代码推至远程仓库B中
    git push --mirror 远程仓库B的地址

在老的仓库目录下执行:

git remote set-url --push origin <新git仓库地址>
git push -all;

参考:

最后编辑于:2024/2/25作者: joycode

我不入地狱,谁入地狱?

评论已关闭