Transfer git repositories from GitLab to GitHub - can we, how to and pitfalls (if any)?

后端 未结 6 1610
生来不讨喜
生来不讨喜 2020-12-02 03:32

Can one transfer repositories from GitLab to GitHub if the need be. If so, how exactly can I go about doing the same?

Also, are there any pitfalls in doing so or pre

6条回答
  •  执笔经年
    2020-12-02 04:20

    I had the opposite problem and finally had to create my own bash shell script for the company to migrate the hundred of repos from Github to Gitlab due to a change in the company policy.
    The script use the Gitlab API to remotely create a repo, and push the Github repo into it. There is no README.md file yet, but the sh is well documented.
    The same thing can be done opposite way I imagine. Hope this could help.
    https://github.com/mahmalsami/migrate-github-gitlab/blob/master/migrate.sh

提交回复
热议问题