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

Parent-less branches

From
Pedro Melo <melo@simplicidade.org>
Date
May 2, 2008, 21:05 UTC
Message-ID
<F26CE1A6-FE85-4AC6-BCE6-B41085A09F0F@simplicidade.org>
Hi,

inside an existing repository I want to create a new branch without a parent commit. Is there a set of commands to do this? Usually only the initial commit of a

The idea is to use that branch to track an external source tarball.  
 From time to time, I would checkout the branch and dump a new  
tarball with fresh source code, commit it to the branch and merge  
again with my master.

I could create the setup this setup if I create a separate repo for each external source tarball and then fetch them into my main repository. But I don't need those repos after that so I'm just wondering if there is a way to create the empty branch directly.

Thanks,
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo@simplicidade.org
Use XMPP!
Next: Junio C Hamano
Message 1 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.