如何迁移一个仓库到新的Gitlab
文章发布较早,内容可能过时,阅读注意甄别。
一般这种迁移,要注意旧仓库的提交历史等信息也要同步到新的仓库。
先使用如下命令克隆老的:
git clone --bare git@gitlab.test1.com:f2e/test.git
1
新仓库创建好,使用如下命令推上去:
git push --mirror git@gitlab.test2.com:f2e/test.git
1
这样旧仓库当中的提交历史,以及各个分支标签就会同步过来了。
上次更新: 2024/04/25, 22:08:24
- 01
- 学习周刊-总第156期-2024年第17周04-25
- 02
- 基于langchaingo实现知识库对接本地模型ollama的分步探索04-19
- 03
- 学习周刊-总第155期-2024年第16周04-19