Skip to content

Instantly share code, notes, and snippets.

@imr
Last active August 29, 2015 14:22
Show Gist options
  • Save imr/3896a42ce1e3b33869de to your computer and use it in GitHub Desktop.
Save imr/3896a42ce1e3b33869de to your computer and use it in GitHub Desktop.
git clone --mirror https://<repo-to-mirror>.git
cd <repo-to-mirror>.git
git remote set-url --push gitlab <new path>
git fetch -q
git push -q --mirror gitlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment