Git development
 help / color / mirror / Atom feed
From: "Theodore Tso" <tytso@mit.edu>
To: Gabor Urban <urbangabo@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Super repository
Date: Tue, 7 Apr 2026 10:52:24 -0400	[thread overview]
Message-ID: <20260407145224.GB81690@macsyma-wired.lan> (raw)
In-Reply-To: <CAL=1hhxP08w=pMa39izN7SyFzsv+5HWZhtzhh136ZmG2dg7Xtw@mail.gmail.com>

On Mon, Apr 06, 2026 at 08:36:08AM +0200, Gabor Urban wrote:
> 
> 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
						

      parent reply	other threads:[~2026-04-07 14:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-06  6:36 Super repository Gabor Urban
2026-04-07  6:58 ` Christian Couder
2026-04-07 14:52 ` Theodore Tso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260407145224.GB81690@macsyma-wired.lan \
    --to=tytso@mit.edu \
    --cc=git@vger.kernel.org \
    --cc=urbangabo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox