threads / discuss / 33917

restoring all branches from a bundle

Subject: restoring all branches from a bundle

## tl;dr

2 messages between May 24, 2013 and May 24, 2013.

replies: 1people: 2as markdown or json

Ákos, Tajti· May 24, 2013, 10:52 UTC · lore
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

Duy Nguyen· May 24, 2013, 11:42 UTC · re: Ákos, Tajti · lore

Re: restoring all branches from a bundle

On Fri, May 24, 2013 at 5:52 PM, "Ákos, Tajti" <akos.tajti@intland.com> wrote:
Show 7 quoted lines
> 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

← back to recent threads