如何迁移一个仓库到新的Gitlab
文章发布较早,内容可能过时,阅读注意甄别。
一般这种迁移,要注意旧仓库的提交历史等信息也要同步到新的仓库。
先使用如下命令克隆老的:
git clone --bare git@gitlab.test1.com:f2e/test.git
1
新仓库创建好,使用如下命令推上去:
git push --mirror git@gitlab.test2.com:f2e/test.git
1
这样旧仓库当中的提交历史,以及各个分支标签就会同步过来了。
![微信](https://t.eryajf.net/imgs/2023/01/834f12107ebc432a.png)
![支付宝](https://t.eryajf.net/imgs/2023/01/fc21022aadd292ca.png)
上次更新: 2024/07/04, 22:40:37
- 01
- 学习周刊-总第169期-2024年第30周07-26
- 02
- 使用docker快速部署rancher-2.8.5并投入生产实践07-20
- 03
- 学习周刊-总第168期-2024年第29周07-18