Posted May 13, 2011 23:10 UTC (Fri) by mathstuf (subscriber, #69389)
In reply to: DVCS-autosync by martinfick
Parent article: DVCS-autosync
You also have to prune the remote repository. If the old blobs are in the packs, they will still get downloaded when cloned even if they're unreferenced. Same with pushing: blobs reachable from commits in the reflog is considered "referenced" and blobs will linger from that as well. To remove these blobs, a combination of "git repack", "git fsck --unreachable HEAD", and "git prune" would be necessary. I don't know of one tool/command that does a pruning of *all* blobs not reachable from a set of commits.