GitLab 实现仓库完全迁移,包括所有提交记录、分支、标签

18-12-28 18:20 23616 0 技术

具体命令如下:

cd <项目目录>
git fetch --all
git fetch --tags
git remote set-url origin <项目的新仓库地址>
git push origin --all 
git push --tags 

参考文章:

https://developer.atlassian.com/blog/2016/01/totw-copying-a-full-git-repo/

请登录后发表评论 点击登录

文章归档

文章日历

2024 年 04 月
29 01 02 03 04 05 06
07 08 09 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
29 30 01 02 03 04 05

文章标签

最新评论

友情链接