Ejemplo para Migrar de bitbucket a github
git clone --mirror https://bitbucket.org/exampleuser/repository-to-mirror.git
# Make a bare mirrored clone of the repository
cd repository-to-mirror.git
git remote set-url --push origin https://github.com/exampleuser/mirrored
# Set the push location to your mirror
git push --mirror
- Advertencias:
- Hay que usar https en vez de ssh (en el "HOST DESTINO")
- recordar poner el "--mirror" en el git clone, de lo contrario no sube los branches