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
| Rene Herman | [PATCH] x86: provide a DMI based port 0x80 I/O delay override |
| Greg KH | [02/50] DVB: get_dvb_firmware: update script for new location of sp8870 firmware |
| Linus Torvalds | Linux 2.6.26-rc4 |
| Daniel Walker | Re: [PATCH 3/3] net: wireless: bcm43xx: big_buffer_sem semaphore to mutex |
git: | |
| Junio C Hamano | Re: [RFC] Cache negative delta pairs |
| Stefan Richter | Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins |
| Martin Langhoff | Handling large files with GIT |
| David Symonds | Re: git and binary files |
| Rémi Denis-Courmont | [PATCH 09/14] Phonet: allocate and initialize new sockets |
| David Miller | [GIT]: Networking |
| David Miller | Re: sockets affected by IPsec always block (2.6.23) |
| Stephen Hemminger | Re: [PATCH 1/2] IPV4: remove addresses and routes when carrier is lost |
| Richard Stallman | Real men don't attack straw men |
| Leon Dippenaar | New tcp stack attack |
| Chris Tankersley | Dell PERC 3/Di - No Disks Found |
| Anselm R. Garbe | OpenBSD 4.0 / Xorg -> vesa 1920x1200 widescreen resolution |
