git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Splitting up a repository
@ 2010-12-04  5:27 Evan Driscoll
  2010-12-04  5:33 ` Jeff King
  2010-12-04  7:09 ` Nguyen Thai Ngoc Duy
  0 siblings, 2 replies; 6+ messages in thread
From: Evan Driscoll @ 2010-12-04  5:27 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 872 bytes --]

Say I have a repo where there are directories repo/foo, repo/bar,
repo/baz. 'foo', 'bar', and 'baz' are loosely related -- closely enough
that I put them together initially, but loosely enough that I now wish I
could check out just 'repo/foo'. Since Git doesn't support partial
checkouts (a bit annoying!), I now have to split this repository into
separate ones. I'd of course like to keep history.

Is there a better way than making several (recursive) copies of the
repository, deleting all but one directory in each copy, then moving the
contents of that directory up a level? (And perhaps setting up a Git
superproject at the original location. I do know about that.)

I've probably spent more time typing up this email than it would take to
do, but I'm curious if there's some git magic or something that would be
better for some reason. :-)

Evan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 543 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-04  7:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-04  5:27 Splitting up a repository Evan Driscoll
2010-12-04  5:33 ` Jeff King
2010-12-04  6:19   ` Evan Driscoll
2010-12-04  7:09 ` Nguyen Thai Ngoc Duy
2010-12-04  7:14   ` Evan Driscoll
2010-12-04  7:41     ` Nguyen Thai Ngoc Duy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).