Do I need to run git gc (housekeeping) on my repo?

The git gc command cleans up unnecessary files and optimizes the local repository. Bitbucket runs this operation on its hosted repositories automatically on a regular basis based on a variety of triggers. Locally you can run it at any time. Running it won't have any adverse affect on your repository.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport