How to migrate a repository from GitLab to GitHub

Clone the repo from GitLab using the --mirror option to make it more portable

$ git clone --mirror

Change into newly cloned directory

$ cd ~/appcstrap.git

Create a new respository on GitHub that matches the name of your directory (in this example, it would be appcstrap).

Push to GitHub using the --mirror option. The --no-verify option skips any hooks.

$ git push --no-verify --mirror

Set push URL to the mirror location. You can do this for any existing local repositories if you don’t want to use the cloned directory location.

$ git remote set-url --push origin