git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Alex Riesen <raa.lkml@gmail.com>
Date
Aug 29, 2008, 09:46 UTC
Message-ID
<81b0412b0808290246j299371b0k7895308368266a01@mail.gmail.com>
In-Reply-To
<38b2ab8a0808290237l703b0394rad8f42c091d7143f@mail.gmail.com>
2008/8/29 Francis Moreau <francis.moro@gmail.com>:
Show 13 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.
>
> Shouldn't we add a new option to git-branch to do that, like:
>
>    $ git branch --detach <new-branch>
>
Dunno. I never needed that explicitly. What do you want to do with it?
Previous: Francis MoreauNext: Francis Moreau
Message 4 of 9 in “How to create a branch without any links to the others branches”
  1. Francis MoreauAug 29, 2008
  2. Alex RiesenAug 29, 2008
  3. Francis MoreauAug 29, 2008
  4. Alex RiesenAug 29, 2008
  5. Francis MoreauAug 29, 2008
  6. Junio C HamanoAug 29, 2008
  7. Francis MoreauAug 29, 2008
  8. Nguyen Thai Ngoc DuyAug 29, 2008
  9. Francis MoreauAug 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.