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