Skip to content

Instantly share code, notes, and snippets.

@AlbertoTP
Forked from mariozig/migrate_repo.sh
Last active February 11, 2018 03:26
Show Gist options
  • Save AlbertoTP/b68dd6af2ee39b8b4dcbeb5b7f9fe537 to your computer and use it in GitHub Desktop.
Save AlbertoTP/b68dd6af2ee39b8b4dcbeb5b7f9fe537 to your computer and use it in GitHub Desktop.
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
# Clone the repo from GitLab using the `--bare` option
$ git clone --bare [email protected]:mario/my-repo.git
# Push to GitHub using the `--mirror` option
$ git push --mirror [email protected]:mario/my-repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment