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

Re: remove all traces of some files

From
Johannes Sixt <j6t@kdbg.org>
Date
Apr 27, 2011, 20:37 UTC
Message-ID
<4DB87E9E.8060700@kdbg.org>
In-Reply-To
<BANLkTim_PriowuBH71M2DxxkJ=Y5oAA2uA@mail.gmail.com>
Am 27.04.2011 21:58, schrieb Eric Frederich:
Show 17 quoted lines
> I have been adding build files (.dll and .so files) to my git
> repository periodically when I have been doing builds of my project.
> I know I shouldn't be doing this and want to set up some other kind of
> separate archive or something for built files.
> 
> Although there are other devs on the project, I am the only one using
> Git.  Everyone else uses AccuRev.
> Personally, I maintain my own Git repo (with an AccuRev git branch).
> 
> I would like to remove all traces of those .dll and .so files if I
> could in my git repository.
> I realize this would mess with hashes and would ultimately result in a
> completely new tree.
> I am fine with that since, as I said, I am the only user of this Git repo.
> 
> So, can this be done?  Can I rebuild the tree preserving commit
> messages, timestamps, etc but ignoring certain files?
Get familiar with git-filter-branch --index-filter.
-- Hannes
Previous: Eric FrederichNext: Phil Hord
Message 2 of 3 in “remove all traces of some files”
  1. Eric FrederichApr 27, 2011
  2. Johannes SixtApr 27, 2011
  3. Phil HordApr 27, 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.