Create a new repository on GitHub: https://github.com/new
Checkout the repository from the old provider using git clone --mirror
, which implies -bare
and thus does not generate a working copy:
git clone --mirror [email protected]:company/myrepo.git
Change into project directory:
cd myrepo.git
Push to the new Git Server:
git push --mirror [email protected]/myrepo.git