On 05/03/2012 08:38 PM, Hallvard Breien Furuseth wrote: > After removing a branch, 'git gc' explodes all objects > which were only in that branch. Git filled up my disk that > way when I had cherry-picked from a big remote repo and then > did git remote rm. Tested with Git 1.7.10.1 and 1.7.1. > That's by design. It's added to save people who accidentally delete a branch or for some other reason really want to keep the objects they're about to delete. Use 'git gc --prune=now' with a recent* git and you'll avoid the problem. * Recent enough to include the patch that avoids writing out loose objects when they would be auto-deleted by the following pruning. -- Andreas Ericsson andreas.ericsson@xxxxxx OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html