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

Re: Really remove a file ?

From
Stefan Karpinski <stefan.karpinski@gmail.com>
Date
Oct 10, 2008, 20:50 UTC
Message-ID
<d4bc1a2a0810101350h17856074qfe397078b734eb85@mail.gmail.com>
In-Reply-To
<20081010143249.GE3671@atjola.homenet>
> But don't do the pruning until you're absolutely sure that you don't
> require the old stuff anymore.

Or, of course, you could just keep an independent copy of the whole repo pre-filter-branch.

On Fri, Oct 10, 2008 at 7:32 AM, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:
Show 29 quoted lines
>
> On 2008.10.10 05:38:25 -0400, marcreddist@aim.com wrote:
> >> You'll probably also want to run "git gc" on your repo to actually
> >> get rid of the huge object that was added (or does filter-branch do
> >> this automatically?).
> >
> > I'm not sure it's required by git-filter-branch alone. In this case :
> >
> > git-gc saves almost 5% after the file deletion
> >
> > it saves 4.5% before the file deletion
> >
> > If I run git gc before and after the git filter-branch, it saves 4.5%
> > and then 0.2%.
>
> Did you clear the refs/original namespace and your reflogs? Otherwise,
> the huge object is most likely still referenced and thus won't get
> pruned. Also, I usually prefer "git repack -adf" over "git gc" in such
> situations, but that's probably just because I don't know the right
> way to force "git gc" to immediately prune stuff just once.
>
> But don't do the pruning until you're absolutely sure that you don't
> require the old stuff anymore.
>
> Björn
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Björn Steinbrink
Message 6 of 6 in “Really remove a file ?”
  1. marcreddist@aim.comOct 9, 2008
  2. Alex RiesenOct 9, 2008
  3. Stefan KarpinskiOct 9, 2008
  4. marcreddist@aim.comOct 10, 2008
  5. Björn SteinbrinkOct 10, 2008
  6. Stefan KarpinskiOct 10, 2008

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.