Skip to contentSkip to conversation

restoring all branches from a bundle

DISCUSSION Ákos, Tajti 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Dear List,

I created a dump from a repository. git bundle list-heads prints all the refs I meant to add. The problem is that after exracting the dump with git bundle unbundle the target repository doesn't contain any branches (git branch -a prints nothing). How can we exract a dump so that the branches are also restored?

Thanks in advance,
Ákos Tajti

#1 lore raw
Quoted 7 lines · Tajti

Dear List,

I created a dump from a repository. git bundle list-heads prints all the refs I meant to add. The problem is that after exracting the dump with git bundle unbundle the target repository doesn't contain any branches (git branch -a prints nothing). How can we exract a dump so that the branches are also restored?

I think "git fetch /path/to/the/bundle <refspec>" does that. --
Duy