# restoring all branches from a bundle

2 messages from 2013-05-24 to 2013-05-24. Participants: Ákos, Tajti, Duy Nguyen.
Thread: https://gitlist.dev/t/33917

## Ákos, Tajti, 2013-05-24 10:52

Subject: restoring all branches from a bundle
Message-ID: <519F4684.7010905@intland.com>
URL: https://gitlist.dev/e/519F4684.7010905%40intland.com

```
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, 2013-05-24 11:42

Subject: Re: restoring all branches from a bundle
Message-ID: <CACsJy8C6C1GpTts+n+5Bs=aFbAgRCaQ5K8c+kr1ux0tjUbbgeQ@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8C6C1GpTts%2Bn%2B5Bs%3DaFbAgRCaQ5K8c%2Bkr1ux0tjUbbgeQ%40mail.gmail.com
In-Reply-To: <519F4684.7010905@intland.com>

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

```
