Web lists-archives.org

Re: How to create a branch without any links to the others branches




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.

Shouldn't we add a new option to git-branch to do that, like:

    $ git branch --detach <new-branch>

?
-- 
Francis
--
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