Re: How to create a branch without any links to the others branches
- Date: Fri, 29 Aug 2008 19:34:53 +0700
- From: "Nguyen Thai Ngoc Duy" <pclouds@xxxxxxxxx>
- Subject: Re: How to create a branch without any links to the others branches
On 8/29/08, Francis Moreau <francis.moro@xxxxxxxxx> wrote:
> On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen <raa.lkml@xxxxxxxxx> wrote:
> >
> > $ rm .git/HEAD
> > $ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD
> > $ git commit
> >
>
>
> well, it looks pretty git internal hack thing to me.
There is an old thread that uses "git symbolic-ref" or something
instead of "echo...", it would look less hacky. Or you could create a
new repository, make a new branch there, then pull that branch to your
repository.
--
Duy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html