git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Avery Pennarun <apenwarr@gmail.com>
To: Andrew Benton <b3nton@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Configuring git to for forget removed files
Date: Sat, 20 Feb 2010 13:50:25 -0500	[thread overview]
Message-ID: <32541b131002201050l35c095a0i1b525e8be7812e59@mail.gmail.com> (raw)
In-Reply-To: <4B7FBB73.70004@gmail.com>

On Sat, Feb 20, 2010 at 5:37 AM, Andrew Benton <b3nton@gmail.com> wrote:
> 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

  parent reply	other threads:[~2010-02-20 18:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-20 10:37 Configuring git to for forget removed files Andrew Benton
2010-02-20 15:41 ` Tim Visher
2010-02-20 18:50 ` Avery Pennarun [this message]
2010-02-20 19:16 ` Junio C Hamano
2010-02-21  2:47 ` Jonathan Nieder
2010-02-21 13:32   ` Andrew Benton
2010-02-21 20:32 ` Larry D'Anna
2010-02-21 21:14   ` Jacob Helwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32541b131002201050l35c095a0i1b525e8be7812e59@mail.gmail.com \
    --to=apenwarr@gmail.com \
    --cc=b3nton@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).