threads / discuss / 12219

Merge git repositories

Subject: Merge git repositories

## tl;dr

3 messages between Feb 20, 2008 and Feb 21, 2008.

replies: 2people: 2as markdown or json

H.Merijn Brand· Feb 20, 2008, 16:59 UTC · lore

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· Feb 21, 2008, 13:34 UTC · re: H.Merijn Brand · lore

Re: Merge git repositories

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· Feb 21, 2008, 13:58 UTC · re: Jerome Lovy · lore

Re: Merge git repositories

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

Show 13 quoted lines
> 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/

← back to recent threads