git is live
Eli Zaretskii
eliz@gnu.org
Fri Jan 10 06:53:00 GMT 2014
> From: Samuel Bronson <naesten@gmail.com>
> Date: Fri, 10 Jan 2014 02:55:36 +0000 (UTC)
>
> > git reflog expire --expire=now --all
> > git gc --prune=now --aggressive
> >
> > --aggressive takes a lot of time though.
>
> I don't think --aggressive does what you think it does. They tell me that
> using "git repack" with some flags (or even no flags) is nearly always
> preferable; see:
>
>
> http://metalinguist.wordpress.com/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/
That article is old (2007!) and outdated. Look into the source of
git-gc, and you will see that it actually invokes git-repack with the
exact options recommended by the article.
> (But of course you would certainly still want pruning to happen, but "git
> repack" can do that too; for example, try "git repack -a".)
Again, "git gc --aggressive" does that, too.
More information about the Gdb
mailing list