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

Where is git checkout --orphan implemented at.

From
SHSean Hunt <seandhunt_7@icloud.com>
Date
Jun 5, 2018, 16:02 UTC
Message-ID
<2ED916AA-3E6A-4E22-9B9B-13C3B687B357@icloud.com>
I would like to see the source code to git checkout --orphan so I can learn how it works and so I can manually do what it does by hand on making a new branch with no history in the refs folder. I can only do it on my iPhone as my laptop has no internet or way to do it there, and the program on my iPhone does not have the method implemented yet visually to do it, forcing manual creation of the orphan branch by hand in the end. If the public github had all the codes to all commands and subcommands like the one above it would be nice or well at least a file that explains the source file each command and subcommands are from so that way a person like me can use as a reference to make our own git gui that has 100% of command line git features.
Sent from my iPhone
Next: Jeff King
Message 1 of 4 in “Where is git checkout --orphan implemented at.”
  1. Sean HuntJun 5, 2018
  2. Jeff KingJun 5, 2018
  3. Junio C HamanoJun 11, 2018
  4. Jeff KingJun 11, 2018

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.