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

Re: publish since current state?

From
Andreas Ericsson <ae@op5.se>
Date
Nov 17, 2008, 07:21 UTC
Message-ID
<49211B78.50204@op5.se>
In-Reply-To
<96ed5eac0811161242o4c800e37u7c96872a9a4351ef@mail.gmail.com>
Gennady Kushnir wrote:
Show 6 quoted lines
> Hello list.
> I'm going to publish my work into online public repository.
> I have several months of previous history in my local git repo. And I
> don't want to make it all public.
> Is it possible to publish just a shallow copy of my repository storing
> my current tree?

Yes. Look for 'grafts' in the documentation. You'll have to create a new repository containing only the most recent code first, and then create the grafts-file in that repository and copy the object database from the old repository into the new one.

> I'd also like to keep my local history private but push new commits
> from it into that online repo.
> 

The grafts solution will work like that, assuming you don't publish your grafts-file.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Gennady KushnirNext: Gennady Kushnir
Message 2 of 4 in “publish since current state?”
  1. Gennady KushnirNov 16, 2008
  2. Andreas EricssonNov 17, 2008
  3. Gennady KushnirNov 17, 2008
  4. Andreas EricssonNov 17, 2008

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.