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
Junio C Hamano <gitster@pobox.com>
Date
Jun 1, 2026, 05:33 UTC
Message-ID
<xmqqh5nmakq1.fsf@gitster.g>
In-Reply-To
<pull.2122.git.1779814052.gitgitgadget@gmail.com>
"Evan Haque via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 15 quoted lines
> 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.

Although I am personally not interested in this topic even for local repository use, I should point out that using this tool to create this combination of repositories would not be useful for other people who want to clone your arrangement. Other than leaving comments in the parent project, there seems to be no way to specify how or where the child projects should be cloned within the working tree of the parent project.

Since Git is primarily a tool for collaboration among people with their own repositories, I fail see how this feature is something we should ship to all Git users as part of the core distribution.

Thanks.
Previous: Claus Schneider
Message 9 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.