Re: Why repository grows after "git gc"? / Purpose of *.keep files?
On Mon, 12 May 2008, Govind Salinas wrote:
Show 10 quoted lines
> On Mon, May 12, 2008 at 2:36 PM, Nicolas Pitre <nico@cam.org> wrote:
> > Sure. But to decide to track only one branch and exclude the others
> > require some higher level of git knowledge already. At that point if
> > you really care about top packing performances you certainly can deal
> > with the .keep file as well.
>
> I have had some similar problems with .keep files. I cloned a repo I
> created that had a branch that I wasn't interested in. I deleted the
> branch and then I could never get rid of the (large) number of objects
> in that pack until I deleted the .keep and repacked.
But as soon as you just "git pull" you'll get the deleted branch back.
Nicolas