It seems like git gc --aggressive really cleans up my repo, but when I do git push everything is already up-to-date. Is there a way to clean up the server?
It seems like git gc –aggressive really cleans up my repo, but when I
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.
2012: I know that GitHub will run
git gcperiodically, as the GitHub support mentioned inthis thread.Since 2012 (up to 2023):
I don’t know if you can force it yourself, though.
I didn’t see such a service in the GitHub hooks.
As illustrated by "How to remove a dangling commit from GitHub?", no
git gcseems to be ever performed on remote GitHub repository.That means any remote repository cleanup would be the result of an explicit request to GitHub Support.