Mirroring from Gitlab to Github

后端 未结 3 1341
走了就别回头了
走了就别回头了 2021-01-30 13:47

I have been using a private Gitlab instance to hold all my code. But since most of the staff that work with me now have a Github account, i would really like to get moving and m

3条回答
  •  独厮守ぢ
    2021-01-30 14:17

    GitLab has now an option to do this from the UI, go to the Settings->Repository of your repo:

    https://gitlab.com/yourUserNameInGitLab/yourRepoName/settings/repository

    Then find the option "Mirror a repository" and click on expand. What you want to do is choose the "Push" mirror direction and fill this URL:

    https://yourUserNameInGitHub@github.com/yourUserNameInGitHub/yourRepoName.git

提交回复
热议问题