i creata backup del mio repository git come in How to backup a local Git repository? proposto conripristino repository git da backup fascio
git bundle create /tmp/foo-all --all
posso vedere tutti refs sono lì, compreso un ref remoto creato da git-svn. Ora non riesco a capire come ripristinare di nuovo questo bundle in un repository locale. Sono abbastanza sicuro di averlo già fatto una volta. Ho provato git-clone ma questo mi dà un repository solo con il mio bundle di backup come repo remoto.
Ho anche provato
git init
git bundle unbundle /tmp/foo --all
, ma questo solo elenca tutti i riferimenti ...
Verifica il bundle dà:
$ 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
la verifica non si presenta con arbitri mancanti. – user1283719
@ user1283719 'git clone foo.bundle'? –
'git clone foo.bundle' crea un nuovo repository con il mio bundle di backup come repository remoto come sopra indicato. Il mio repository locale è irreparabile, quindi mi piacerebbe ripristinarlo dal backup inclusa la possibilità di usare git-svn sul suo ramo remoto. – user1283719