We use a central Git repository. Would it be useful to regularly run “git gc” on the server?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the man page:
If you care about disk usage, sure it would be useful. If you’ve got efficiency in mind, benchmark it.
git gcshouldn’t cause any harm, especially in a central repository whose contents are rarely (or rather never) deleted after being written. How often should you run it? It depends.