git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shawn Pearce <spearce@spearce.org>
To: Matt McCutchen <hashproduct@verizon.net>
Cc: git@vger.kernel.org
Subject: Re: Looking for SCM that lets me publish part of a repository
Date: Sun, 5 Mar 2006 20:48:30 -0500	[thread overview]
Message-ID: <20060306014830.GE25790@spearce.org> (raw)
In-Reply-To: <1141608679.16980.12.camel@mattlaptop>

Matt McCutchen <hashproduct@verizon.net> wrote:
> For the last week or so, I have been looking for a SCM system to hold
> many of my projects, some of which are available to the public and
> others of which are not.  It would be nice if I could use a single large
> private repository on my computer with each project in a separate
> folder.  Then I would like to pull some of the projects (but not all)
> into a world-readable repository on my Web site.  I have looked at
> several SCMs and have not found a way to make any of them do this, but I
> like GIT best on other grounds.  Is there a way I can coerce GIT to
> clone and pull one folder out of a repository but ignore the rest?

No.  And actually this is probably not the best way to use GIT.

If you want to segment your work into ``public'' and ``non-public''
then you should at least segment your work into two repositories:
``public'' and ``non-public''.  But you really should segment your
repository to a project-by-project basis.  That is each project
should have its own repository.

That said if there are many files which will have identical content
across many projects you may be able to save disk space by placing
all objects into a single object directory; but that's entirely
independent of project organization.

Unlike CVS, Subversions, etc. GIT repositories are dirt-cheap to
create.  Don't think twice about creating a different repository
for a new project.  I think I'm up on about 50 repositories at
this point; however each one is typically less than a megabyte in
total size.

-- 
Shawn.

  reply	other threads:[~2006-03-06  1:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-06  1:31 Looking for SCM that lets me publish part of a repository Matt McCutchen
2006-03-06  1:48 ` Shawn Pearce [this message]
2006-03-06  6:54 ` Alan Chandler
2006-03-06 20:58 ` Sam Vilain

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=20060306014830.GE25790@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=hashproduct@verizon.net \
    /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 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).