How to reduce git repo size on Bitbucket?

I’ve found that the easiest way to reduce the Bitbucket repo size if you are over the 2GB limit is to

  1. Create a branch on Bitbucket
  2. Delete that branch on Bitbucket

This should trigger Bitbucket to run git gc on the repo.

Leave a Comment