You can just delete the logs and references that you don't want and run
git gc --prune.
However.
git gc creates a new pack before deleting the old one. Garbage
collection usually does this; make a copy of everything to a new place
and then free all of the old space. If *that* is a problem, ie you
don't have enough space for two copies of the repository and the junk,
you'll have to do a partial import, leave the junk you don't want
unpacked, cleanup and prune, then finish the import. Which sounds like
a lot of hassle when you should really just find a place with more space
to work with!
Sam.
-
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