大约半年前因为一些原因,我们的项目从github
迁移到了自建的gitlab
服务器,但是半年的使用过程中发现gitlab
的很多功能并不能够满足需求,因此近期想要迁回到github
上。
问题是github
上仍然保留着此前的项目repo
,而网上搜索到的方法大都是在github
上新建repo
的。是否有更好的方案,可以不用新建repo
完成gitlab
到github
的迁移?
补充:
issue和wiki都是需要迁移的
PHPz2017-05-02 09:24:13
Create a repo on Github, then go to your repo, modify the remote url, and then
git push
世界只因有你2017-05-02 09:24:13
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.
我想大声告诉你2017-05-02 09:24:13
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?