login
Header Space

 
 

git gc & deleted branches

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Thursday, May 8, 2008 - 1:45 pm

Hello,

I'm trying to reclaim space from an abandoned branch (never involved in 
any merge) using 'git gc', but it doesn't appear to work:

   mkdir testrepo
   cd testrepo
   git init
   dd if=/dev/urandom bs=1024k count=10 of=file
   git add file
   git commit -a -m 'initial checkin'
   git checkout -b test
   dd if=/dev/urandom bs=1024k count=10 of=file
   git commit -a -m 'branch checkin'
   git checkout master
   du -s .    # returns 30960
   git branch -D test
   git gc
   du -s .    # returns 30916

Here I had expected ~20000 since the branch uses ~10000.

My config is

[gc]
         reflogExpire = 0
         reflogExpireUnreachable = 0
         rerereresolved = 0
         rerereunresolved = 0
         packrefs = 1

I also tried 'git-pack-refs --all' or 'git-pack-refs --prune' but to no 
avail.

What am I doing wrong?

Thanks for any hints.

Regards

Guido
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git gc & deleted branches, Guido Ostkamp, (Thu May 8, 1:45 pm)
Re: git gc &amp; deleted branches, Jeff King, (Thu May 8, 2:39 pm)
Re: git gc &amp; deleted branches, Guido Ostkamp, (Thu May 8, 2:55 pm)
Re: git gc &amp; deleted branches, Jeff King, (Thu May 8, 4:51 pm)
Re: git gc &amp; deleted branches, Brandon Casey, (Thu May 8, 4:07 pm)
Re: git gc &amp; deleted branches, Jeff King, (Thu May 8, 4:56 pm)
Re: git gc &amp; deleted branches, Guido Ostkamp, (Thu May 8, 4:52 pm)
Re: git gc &amp; deleted branches, Jeff King, (Thu May 8, 5:01 pm)
Re: git gc &amp; deleted branches, Guido Ostkamp, (Thu May 8, 5:33 pm)
Re: git gc &amp; deleted branches, Nicolas Pitre, (Thu May 8, 5:15 pm)
Re: git gc &amp; deleted branches, Jeff King, (Thu May 8, 5:17 pm)
Re: git gc &amp; deleted branches, Brandon Casey, (Thu May 8, 5:23 pm)
Re: git gc &amp; deleted branches, Jeff King, (Thu May 8, 5:31 pm)
Re: git gc &amp; deleted branches, Brandon Casey, (Thu May 8, 5:40 pm)
Re: git gc &amp; deleted branches, Jeff King, (Thu May 8, 5:44 pm)
Re: git gc &amp; deleted branches, Brandon Casey, (Thu May 8, 5:53 pm)
Re: git gc &amp; deleted branches, Jeff King, (Thu May 8, 6:48 pm)
speck-geostationary