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

Re: Parent-less branches

From
Pedro Melo <melo@simplicidade.org>
Date
May 2, 2008, 23:04 UTC
Message-ID
<A8B95683-9832-4973-B920-8546CC55F162@simplicidade.org>
In-Reply-To
<7vskx0wf8i.fsf@gitster.siamese.dyndns.org>
Hi,
On May 2, 2008, at 10:47 PM, Junio C Hamano wrote:
Show 16 quoted lines
> Pedro Melo <melo@simplicidade.org> writes:
>
>> inside an existing repository I want to create a new branch without a
>> parent commit. Is there a set of commands to do this?
>
> Typically these commits come about because you created a completely
> separate history elsewhere in a separate repository and fetched and/or
> pulled from there.
>
> So "a set of commands to do this" would be:
>
> 	go away
> 	git init
>         build history as usual
> 	come back
>         git fetch ..from that other repository..
Yes, that is what I was using until today.
I was asking for a in-repo solution, without the second git init.
The following email by Wincent Colaiuta does exactly what I wanted :).
Thanks!
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo@simplicidade.org
Use XMPP!
Previous: Pedro MeloNext: Randal L. Schwartz
Message 5 of 7 in “Parent-less branches”
  1. Pedro MeloMay 2, 2008
  2. Junio C HamanoMay 2, 2008
  3. Wincent ColaiutaMay 2, 2008
  4. Pedro MeloMay 2, 2008
  5. Pedro MeloMay 2, 2008
  6. Randal L. SchwartzMay 2, 2008
  7. Johannes SchindelinMay 3, 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.