git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Looking for SCM that lets me publish part of a repository

From
Alan Chandler <alan@chandlerfamily.org.uk>
Date
Mar 6, 2006, 06:54 UTC
Message-ID
<200603060654.12815.alan@chandlerfamily.org.uk>
In-Reply-To
<1141608679.16980.12.camel@mattlaptop>
On Monday 06 March 2006 01:31, Matt McCutchen wrote:
Show 7 quoted lines
> Dear GIT people,
>
> 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. 

Not sure why you would want to do this against having lots of smaller repositories - (I have lots of small repositories - its mostly java, and my shared library files have their own repository which is automatically exported to where my projects can access it when I commit to it via a post commit hook - you can see the public version of them on my web site) but ...

Create each project on a separate branch of the common repository and ensure only the files you want in each project remains on each branch (and any shared files can exist in all branches).

In your "remotes" files you list the branches that you want to push to your public repository.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
Previous: Shawn PearceNext: Sam Vilain
Message 3 of 4 in “Looking for SCM that lets me publish part of a repository”
  1. Matt McCutchenMar 6, 2006
  2. Shawn PearceMar 6, 2006
  3. Alan ChandlerMar 6, 2006
  4. Sam VilainMar 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.