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

Delete particular file contents from complete history

From
PGPatrick Grimard <pgrimard@gmail.com>
Date
Dec 9, 2009, 18:01 UTC
Message-ID
<9cdb17250912091001u362ce64fybe3d554304cbc445@mail.gmail.com>

Is there some way to remove from the entire history a particular file's content? So for example I did an initial commit which contained a file I didn't want in the commit and since then I've committed further changes to the project, even started a branch to experiment with some additional features. I don't want to lose any of my new commits or branch, just want to remove a particular file's content from the entire history.

Thanks.
Next: Miklos Vajna
Message 1 of 2 in “Delete particular file contents from complete history”
  1. Patrick GrimardDec 9, 2009
  2. Miklos VajnaDec 9, 2009

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.