i crea copias de seguridad de mi repositorio git como en How to backup a local Git repository? propuesta conla restauración de la copia de seguridad repositorio git paquete
git bundle create /tmp/foo-all --all
puedo ver todas las referencias están ahí, incluyendo una referencia a distancia creado por git-svn. Ahora no puedo encontrar la manera de restaurar este paquete a un repositorio local nuevamente. Estoy bastante seguro de haberlo hecho ya una vez. Probé git-clone, pero eso me da un repositorio con mi paquete de respaldo como repositorio remoto.
También probé
git init
git bundle unbundle /tmp/foo --all
pero esto sólo enumera todas las referencias ...
Verificación del paquete da:
$ git bundle verify $somewhere/foo.bundle
The bundle contains 12 refs
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/master
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/heads/xxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx refs/remotes/git-svn
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HEAD
The bundle requires these 0 ref
$somewhere/foo.bundle is okay
verificación no se presenta con referencias que faltan. – user1283719
@ user1283719 'git clone foo.bundle'? –
'git clone foo.bundle' crea un nuevo repositorio con mi paquete de respaldo como repositorio remoto como se indicó anteriormente. Mi repositorio local no tiene reparación, por lo que me gustaría restaurarlo desde la copia de seguridad, incluida la capacidad de usar git-svn en su rama remota. – user1283719