All of lore.kernel.org
 help / color / mirror / Atom feed
From: Evan Driscoll <driscoll@cs.wisc.edu>
To: git@vger.kernel.org
Subject: Splitting up a repository
Date: Fri, 03 Dec 2010 23:27:57 -0600	[thread overview]
Message-ID: <4CF9D15D.7090001@cs.wisc.edu> (raw)

[-- 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 --]

             reply	other threads:[~2010-12-04  5:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04  5:27 Evan Driscoll [this message]
2010-12-04  5:33 ` Splitting up a repository 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

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=4CF9D15D.7090001@cs.wisc.edu \
    --to=driscoll@cs.wisc.edu \
    --cc=git@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.