Migrate a repo to another remote

· 1 min read
  • Clone the repo from previous remote using the --mirror option
git clone --mirror https://gitlab.com/mathieutu/repo myRepo
  • Cd into newly created repo directory
cd myRepo
  • Push to your new remote using the --mirror and the --no-verify options.
git push --no-verify --mirror https://github.com/mathieutu/repo

You can find this page with theses search keywords:

/ github / gitlab /
Thanks for reading!
I'm Mathieu TUDISCO, a lead developer at Linkvalue .
You can find me anywhere with @mathieutu.
As a start you can follow me on Twitter or want to find out more about me or the blog.