# Merge git repositories

3 messages from 2008-02-20 to 2008-02-21. Participants: H.Merijn Brand, Jerome Lovy.
Thread: https://gitlist.dev/t/12219

## H.Merijn Brand, 2008-02-20 16:59

Subject: Merge git repositories
Message-ID: <20080220175901.71e7acc2@pc09.procura.nl>
URL: https://gitlist.dev/e/20080220175901.71e7acc2%40pc09.procura.nl

```
I have a whole bunch of git repositories that are conversions from SCCS.
SCCS is a VCS that only deals with a single directory, and cannot cope
with directory hierarchies.

At first the move was received very positive, but now that people see
the strengths of a `real' VCS, it would be way more logical to combine
all the git repos that make up a single project into a single large repo
that includes all directories

SCCS

      .../top  /SCCS
               /foo    /SCCS
               /bar    /SCCS
                       /baz   /SCCS

=>
git

      .../top  /.git
               /foo    /.git
               /bar    /.git
                       /baz   /.git

=> ?

git

      .../top  /.git
               /foo
               /bar    /baz

is it possible to merge git repos from sub-folders into the current repo?


-- 
H.Merijn Brand         Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x  on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin.       http://qa.perl.org
http://mirrors.develooper.com/hpux/            http://www.test-smoke.org
                        http://www.goldmark.org/jeff/stupid-disclaimers/

```

## Jerome Lovy, 2008-02-21 13:34

Subject: Re: Merge git repositories
Message-ID: <47BD7DEC.7040708@brefemail.com>
URL: https://gitlist.dev/e/47BD7DEC.7040708%40brefemail.com
In-Reply-To: <20080220175901.71e7acc2@pc09.procura.nl>

```
Hello,

On 02/20/2008 05:59 PM, H.Merijn Brand wrote:
> I have a whole bunch of git repositories that are conversions from SCCS.
> SCCS is a VCS that only deals with a single directory, and cannot cope
> with directory hierarchies.
[SNIP]

> is it possible to merge git repos from sub-folders into the current repo?

Doesn't maybe the subtree merge strategy help ?
See 
http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html

My 2 cents
Jérôme

```

## H.Merijn Brand, 2008-02-21 13:58

Subject: Re: Merge git repositories
Message-ID: <20080221145823.019b8b7e@pc09.procura.nl>
URL: https://gitlist.dev/e/20080221145823.019b8b7e%40pc09.procura.nl
In-Reply-To: <47BD7DEC.7040708@brefemail.com>

```
On Thu, 21 Feb 2008 14:34:36 +0100, Jerome Lovy
<t2a2e9z8ncbs9qg@brefemail.com> wrote:

> Hello,
> 
> On 02/20/2008 05:59 PM, H.Merijn Brand wrote:
> > I have a whole bunch of git repositories that are conversions from SCCS.
> > SCCS is a VCS that only deals with a single directory, and cannot cope
> > with directory hierarchies.
> [SNIP]
> 
> > is it possible to merge git repos from sub-folders into the current repo?
> 
> Doesn't maybe the subtree merge strategy help ?
> See 
> http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html

Does seem to fit the need.

> My 2 cents

Probably worth much more! Thanks.

> Jérôme

-- 
H.Merijn Brand         Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x  on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin.       http://qa.perl.org
http://mirrors.develooper.com/hpux/            http://www.test-smoke.org
                        http://www.goldmark.org/jeff/stupid-disclaimers/

```
