When working with large repositories git started to spew memory errors during certain processes. This article had some useful information about the pack.windowMemory and pack.packSizeLimit configuration settings.
http://stackoverflow.com/questions/4826639/repack-of-git-repository-fails