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

Re: Super repository

From
Theodore Tso <tytso@mit.edu>
Date
Apr 7, 2026, 14:52 UTC
Message-ID
<20260407145224.GB81690@macsyma-wired.lan>
In-Reply-To
<CAL=1hhxP08w=pMa39izN7SyFzsv+5HWZhtzhh136ZmG2dg7Xtw@mail.gmail.com>
On Mon, Apr 06, 2026 at 08:36:08AM +0200, Gabor Urban wrote:
Show 11 quoted lines
> 
> We have a project in:../foo/Project1 under git locally for a while. In
> a couple of days (or weeks) we are to start two new projects.
> According to the management we have to make ../foo/Project2 and
> ../foo/Projetc3 to be brought under git.
> 
> The real issue: we are told the create a new repository for all 3
> projects (inf /foo/), but we must not lose the development history
> stored in the local git repositiy of Project1
> 
> Is there any good solution for that? Thanks for your help in advance.

So in general this is a bad idea if Project 2 and Project 3 hare going to be separate projects and you aren't planning on merging them into a single tree. Is your company trying to do this because they are too cheap to pay github for more than one private repository, by any chance?

In any case, depending on what exactly you are trying to do, take a look at the two answers here:

https://www.reddit.com/r/git/comments/17wj0bj/merging_multiple_repositories_into_one/
						- Ted
						
Previous: Christian Couder
Message 3 of 3 in “Super repository”
  1. Gabor UrbanApr 6, 2026
  2. Christian CouderApr 7, 2026
  3. Theodore TsoApr 7, 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.