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

Re: Configuring git to for forget removed files

From
Avery Pennarun <apenwarr@gmail.com>
Date
Feb 20, 2010, 18:50 UTC
Message-ID
<32541b131002201050l35c095a0i1b525e8be7812e59@mail.gmail.com>
In-Reply-To
<4B7FBB73.70004@gmail.com>
On Sat, Feb 20, 2010 at 5:37 AM, Andrew Benton <b3nton@gmail.com> wrote:
Show 9 quoted lines
> I have a project that I store in a git repository. It's a bunch of source
> tarballs and
> some bash scripts to compile it all. Git makes it easy to distribute any
> changes I make
> across the computers I run. The problem I have is that over time the
> repository gets ever
> larger. When I update to a newer version of something I git rm the old
> tarball but git
> still keeps a copy and the folder grows ever larger.

You can use 'git filter-branch', as Tim already mentioned, or use a git 'shallow clone' to only get the most recent versions of things.

Alternatively, have you thought about storing *uncompressed* tarballs in git instead of compressed ones? Then when you update to a newer version, git can compute an xdelta from one to the other and store only the changes. That means you can have full history *and* not waste too much disk space. Git compresses the objects anyway when it stores them in the repository.

Have fun,
Avery
Previous: Tim VisherNext: Junio C Hamano
Message 3 of 8 in “Configuring git to for forget removed files”
  1. Andrew BentonFeb 20, 2010
  2. Tim VisherFeb 20, 2010
  3. Avery PennarunFeb 20, 2010
  4. Junio C HamanoFeb 20, 2010
  5. Jonathan NiederFeb 21, 2010
  6. Andrew BentonFeb 21, 2010
  7. Larry D'AnnaFeb 21, 2010
  8. Jacob HelwigFeb 21, 2010

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.