threads / discuss / 21919

Delete particular file contents from complete history

Subject: Delete particular file contents from complete history

## tl;dr

2 messages between Dec 9, 2009 and Dec 9, 2009.

replies: 1people: 2as markdown or json

Patrick Grimard· Dec 9, 2009, 18:01 UTC · lore

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.
Miklos Vajna· Dec 9, 2009, 21:50 UTC · re: Patrick Grimard · lore

Re: Delete particular file contents from complete history

On Wed, Dec 09, 2009 at 01:01:17PM -0500, Patrick Grimard <pgrimard@gmail.com> wrote:
> Is there some way to remove from the entire history a particular
> file's content?

Did you read man git-filter-branch? Looks like the first example does what you need.

← back to recent threads