Re: How to create a branch without any links to the others branches
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Aug 29, 2008, 12:34 UTC
- Message-ID
- <fcaeb9bf0808290534w5025b436s1087bb6a0ffcb16f@mail.gmail.com>
- In-Reply-To
- <38b2ab8a0808290237l703b0394rad8f42c091d7143f@mail.gmail.com>
On 8/29/08, Francis Moreau <francis.moro@gmail.com> wrote:
Show 9 quoted lines
> On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen <raa.lkml@gmail.com> 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