Importando um repositório Git para outro repositório Git
Coisa pequena, mas que parece dar uma dor de cabaça, em um primeiro olhar, não é mesmo?
Graças ao link do Github(https://help.github.com/articles/importing-an-external-git-repository), achei esse trecho super simples, que mostra como fazer isso para o Github e que, obviamente, funciona com outros servidores de Git ;)
# In this example, we use an external account named extuser and # a GitHub account named ghuser to transfer repo.git git clone --bare https://githost.org/extuser/repo.git # Make a bare clone of the external repository to a local directory cd repo.git git push --mirror https://github.com/ghuser/repo.git # Push mirror to new GitHub repository cd .. rm -rf repo.git # Remove temporary local repository
Canal: