Skip to contentSkip to conversation

Merge git repositories

DISCUSSION H.Merijn Brand 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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?

Signature · 5 lines
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/
#1 lore raw

Hello,

Quoted 3 lines · H.Merijn Brand

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]

Quoted 1 line

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

#2 lore raw
Quoted 6 lines · Jerome Lovy

Hello,

Quoted 3 lines · H.Merijn Brand

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.

Quoted 7 lines

[SNIP]

Quoted 1 line

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.

Quoted 1 line

My 2 cents

Probably worth much more! Thanks.

Quoted 1 line

Jérôme

Signature · 5 lines
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/