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

Re: Problems getting rid of large files using git-filter-branch

From
Nicolas Pitre <nico@cam.org>
Date
Jan 7, 2009, 00:56 UTC
Message-ID
<alpine.LFD.2.00.0901061948590.26118@xanadu.home>
In-Reply-To
<20090106231726.GB13379@cuci.nl>
On Wed, 7 Jan 2009, Stephen R. van den Berg wrote:
Show 14 quoted lines
> Nicolas Pitre wrote:
> >On Tue, 6 Jan 2009, ?yvind Harboe wrote:
> >OK, try this:
> 
> >	git pull file://$(pwd)/../my_repo.orig
> 
> Alternately, try:
> 
> rm -rf .git/ORIG_HEAD .git/FETCH_HEAD .git/index .git/logs .git/info/refs \
>   .git/objects/pack/pack-*.keep .git/refs/original .git/refs/patches \
>   .git/patches .git/gitk.cache &&
>  git prune --expire now &&
>  git repack -a -d --window=200 &&
>  git gc

This might not be sufficient. Or at least you better run 'git prune' at the very end, and possibly add -f to 'git repack'. And if you somehow delete something you shouldn't have deleted then you're really screwed, whereas the pull method in another repository doesn't alter the original repository in case you need to go back to it and try something different.

Nicolas
Previous: Stephen R. van den BergNext: Øyvind Harboe
Message 11 of 13 in “Problems getting rid of large files using git-filter-branch”
  1. Øyvind HarboeJan 6, 2009
  2. Johannes SchindelinJan 6, 2009
  3. Øyvind HarboeJan 6, 2009
  4. Johannes SchindelinJan 7, 2009
  5. Øyvind HarboeJan 7, 2009
  6. Johannes SchindelinJan 7, 2009
  7. Sitaram ChamartyJan 7, 2009
  8. Nicolas PitreJan 6, 2009
  9. Øyvind HarboeJan 6, 2009
  10. Stephen R. van den BergJan 6, 2009
  11. Nicolas PitreJan 7, 2009
  12. Øyvind HarboeJan 7, 2009
  13. Nicolas PitreJan 7, 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.