Clone the repo from GitLab using the --mirror
option to make it more portable
$ git clone --mirror git@git.appc.upenn.edu:themes/appcstrap.git
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).
https://github.com/organizations/AnnenbergPublicPolicyCenter/repositories/new
Push to GitHub using the --mirror
option. The --no-verify
option skips any hooks.
$ git push --no-verify --mirror git@github.com:AnnenbergPublicPolicyCenter/appcstrap.git
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 git@github.com:AnnenbergPublicPolicyCenter/appcstrap.git