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

Re: publish from certain commit onward, keeping earlier history private, but provable

From
Johannes Löthberg <johannes@kyriasis.com>
Date
Dec 9, 2015, 17:54 UTC
Message-ID
<20151209175431.GA18000@zorg.kyriasis.com>
In-Reply-To
<35583CFA-3BEE-4844-9F85-ED73A412A97F@joernhees.de>
On 09/12, Jörn Hees wrote:
Show 26 quoted lines
>Hi,
>
>I've been hacking away on a library for quite some time and have a lot 
>of commits in my private repository:
>
>A -> B -> C -> D -> E
>
>Finally, I'm nearing completion of a first version, and want to publish 
>it to a remote called public from D onward keeping A..C to myself, so 
>public should afterwards look like this:
>
>D -> E
>
>My main motivation is that i don't really want to put ridiculously 
>first trials online, but still (on demand) I'd like to be able to prove 
>how i arrived at D (think of copyright claims, etc).
>
>As (at the moment) it's pretty much impossible to reverse-engineer the 
>hashes of commits in the chain with times and changesets, i thought 
>just keeping D's parent pointer to C would be one of the genius 
>advantages of git. Sadly i can't find a way to actually make this work.
>
>Can i somehow push D -> E to public making it a fully functional public 
>repository with all the necessary objects included to checkout D or E 
>and D still pointing to C as parent? If not, why is that?
>
Take a look at git-replace[0][1].

[0]: https://git-scm.com/2010/03/17/replace.html [1]: https://www.kernel.org/pub/software/scm/git/docs/git-replace.html

-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/
Previous: Jörn HeesNext: Jeff King
Message 2 of 6 in “publish from certain commit onward, keeping earlier history private, but provable”
  1. Jörn HeesDec 9, 2015
  2. Johannes LöthbergDec 9, 2015
  3. Jeff KingDec 9, 2015
  4. Jeff KingDec 9, 2015
  5. Stefan BellerDec 9, 2015
  6. Jeff KingDec 9, 2015

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.