On Tue, 17 Jan 2017 05:23:29 -0800 (PST) Ralf Tobel <ralf.to...@gmail.com> wrote:
> Your response was helpful in a sense that I understand what clone > does. > > But still I can not see how I get all the refs which are in the > bundle back in my repository. > It doesn't help that I can backup all the information, I also have to > be able to restore it. > > I just realized that I forgot to mention that I'm talking about > remote branches in the repository from which I create a bundle. > The local branches are perfectly accessible. OK, I see, so please define "get" in "get all the refs ...". I have just bundled one of my repos which has remote branches using git bundle create <whatever> --all and git bundle list-heads <whatever> | grep remote does indeed list remote branches. So are you asking about actually "fetching" them into your local repository you'd like to "clone" from the bundle? That is, you bundle a repo and then "unbundle" it to have it in the exact state the original repo was -- with all the remote branches in it? If yes, I already explained to you how to do that in my response to your original mail--in essense, that's git init foo; cd $_ git fetch -u /path/to/bundle/file 'refs/*:refs/*' git reset --hard Have you actually tried it? Works for me. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.