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

Re: [PATCH 0/5] git son: add command to create independent child repositories

From
Ben Knoble <ben.knoble@gmail.com>
Date
May 26, 2026, 21:27 UTC
Message-ID
<7377E3A2-C866-4E3D-85FC-BC6E10CBF8FC@gmail.com>
In-Reply-To
<pull.2122.git.1779814052.gitgitgadget@gmail.com>
Show 18 quoted lines
> Le 26 mai 2026 à 13:08, Evan Haque via GitGitGadget <gitgitgadget@gmail.com> a écrit :
> 
> 
> Motivation
> ==========
> 
> When spinning off a new project that is related to an existing repository,
> there is no built-in way to create a child repository that maintains a link
> back to its parent without the tight coupling of submodules. Submodules pin
> the child to a specific commit and require the parent to track the child in
> its index, which is too heavyweight when the child is meant to be fully
> independent.
> 
> The typical workflow today is manual: git init, git remote add, update
> .gitignore — three steps that are easy to forget or get wrong. git son
> automates this and establishes a lightweight convention for the parent-child
> relationship: a remote named parent in the child, and nothing in the parent
> except an ignore rule.
I don’t really understand the motivation, but if your goal is to create another repo with the current one as a remote, how does something like
    git clone . child
help you? (I’m pretty sure you can even set the remote name to « parent » if you wish.)
You also didn’t mention worktrees or subtrees, which might be useful for you. 
Previous: Evan Haque via GitGitGadgetNext: Claus Schneider
Message 7 of 9 in “git son: add command to create independent child repositories”
  1. 0/5 git son: add command to create independent child repositoriesEvan Haque via GitGitGadget, May 26, 2026
  2. 1/5 git-son: add command to create independent child repositoriesEvan Haque via GitGitGadget, May 26, 2026
  3. 2/5 git-son: register in Makefile and meson build systemEvan Haque via GitGitGadget, May 26, 2026
  4. 3/5 git-son: add to command list as mainporcelainEvan Haque via GitGitGadget, May 26, 2026
  5. 4/5 git-son: add documentationEvan Haque via GitGitGadget, May 26, 2026
  6. 5/5 git-son: add testsEvan Haque via GitGitGadget, May 26, 2026
  7. Ben KnobleMay 26, 2026
  8. Claus SchneiderMay 29, 2026
  9. Junio C HamanoJun 1, 2026

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.