如何从gitlab迁移到github
淡淡烟草味
淡淡烟草味 2017-05-02 09:22:13
0
3
828

大约半年前因为一些原因,我们的项目从github迁移到了自建的gitlab服务器,但是半年的使用过程中发现gitlab的很多功能并不能够满足需求,因此近期想要迁回到github上。

问题是github上仍然保留着此前的项目repo,而网上搜索到的方法大都是在github上新建repo的。是否有更好的方案,可以不用新建repo完成gitlabgithub的迁移?

补充:
issue和wiki都是需要迁移的

淡淡烟草味
淡淡烟草味

reply all(3)
PHPzhong

Create a repo on Github, then go to your repo, modify the remote url, and then

 git push
世界只因有你

You can try it, change the remote address from gitlab to your original github address, then create a new branch, push to the new remote branch, then clone the remote repo, and merge the newly created branch on the master.

Also, since you migrated from github before, the earliest commit records are actually there. There is really no need to migrate back to the old repo on github. It is easier to create a new repo.

我想大声告诉你

If it’s a previous repo, then theoretically git push [repo url] 应该是可行的,不过对于有可能出现的冲突,还是直接 --force. That solves the problem, right?

In addition, I would like to use a space to discuss with the subject, what aspects of Gitlab do not meet the needs of your team?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template