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

Re: removing files from history but not filesystem

From
CKChristof Krüger <git@christof-krueger.de>
Date
Jun 29, 2011, 16:57 UTC
Message-ID
<1309366630.2417.51.camel@oxylap>
In-Reply-To
<1309327707.2417.49.camel@oxylap>
Show 5 quoted lines
> Another possible way would be to create a temporary branch to point at
> HEAD^, filter-branch it, then add a graft to stitch the remaining commit
> on top of it, then filter-branch HEAD and then remove the branch. But
> this is a bit advanced for the case where you just want to omit one
> commit.

That should have been "[...] and then remove the _graft_." (and the temporary branch).

Regards,
  Chris
Previous: Christof KrügerNext: Shantanu Pavgi
Message 5 of 6 in “removing files from history but not filesystem”
  1. Shantanu PavgiJun 28, 2011
  2. Christof KrügerJun 28, 2011
  3. Shantanu PavgiJun 29, 2011
  4. Christof KrügerJun 29, 2011
  5. Christof KrügerJun 29, 2011
  6. Shantanu PavgiJun 29, 2011

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.