I turned off git's annoying auto-repacking feature (I think most git sites know the message “repacking for optimal performance” when working with git) and instead call “git gc” overnight with a crown.
However, I'm not sure if this is enough, and should I also run git repack before or after git gc.
The "git repack" and "git gc" files do not mention any connection between them, and the "git repack" man page actually contains this phrase:
Instead, free inaccessible objects will be clipped according to normal expiration rules with the next git gc call.
This would mean that “git gc” is not sufficient for all housing retention tasks, as well as “git repack”. Is this correct, and which utility commands should be used for git?
source
share