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

Re: Parent-less branches

From
USUlrik Sverdrup <ulrik.sverdrup@gmail.com>
Date
May 2, 2008, 23:20 UTC
Message-ID
<20080502232008.GA20092@ulrik-ibook>
Show 9 quoted lines
> I wanted to do this just the other day, but I did it all inside the  
> one repo, and made some notes on the process here:
> 
> http://rails.wincent.com/wiki/Creating_independent_branches_with_Git
> 
> Basically, using "git write-tree" and "git commit-tree" plumbing.
> 
> Cheers,
> Wincent
I think I've seen this done much simpler, in this blog post:
http://madduck.net/blog/2007.07.11:creating-a-git-branch-without-ancestry/

Even though your instructions seem more complicated than they are since they mix setting up the parentless branch and preparing the first commit content.

regards, ulrik

(I am not on the list, please CC)
Next: Jakub Narebski
Message 1 of 4 in “Re: Parent-less branches”
  1. Ulrik SverdrupMay 2, 2008
  2. Jakub NarebskiMay 3, 2008
  3. Sverre RabbelierMay 3, 2008
  4. Daniel BarkalowMay 4, 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.