Skip to content

Instantly share code, notes, and snippets.

@elmefr
Forked from mariozig/migrate_repo.sh
Created June 30, 2018 06:16
Show Gist options
  • Select an option

  • Save elmefr/0d3d1f24026fc52f09d6f2b4fbb0ca65 to your computer and use it in GitHub Desktop.

Select an option

Save elmefr/0d3d1f24026fc52f09d6f2b4fbb0ca65 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. The `--no-verify` option skips any hooks.
$ git push --no-verify --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