Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bit bucket size is increased

Hi , I am facing an issue that my bitbucket git shows that the size of my git is 1.5 gb , how to reduce that and the output of object count is this :

count: 1007
size: 58960
in-pack: 30041
packs: 2
size-pack: 1355161
prune-packable: 0
garbage: 0
size-garbage: 0

1 answer

0 votes
Caroline R Atlassian Team Jul 02, 2021

Hi, Vivek! 

I have confirmed that you had 2 repositories above 1 GB, so I ran a git GC on both of them through the server. I was able to reduce the size of one of the repositories, but the other one is still over 1 GB. 

Just to give you some context around our repository size limit, we do recommend repositories be kept under 2.0 GB to help ensure that our servers are fast and downloads are quick for our users. Bitbucket Cloud repositories under a paid plan have a 4.0 GB limit. When that limit is reached, you will only be able to push changes that undo the latest commits. 

The repository limit for free repositories is 2 GB; however, at this time, we are not enforcing this limitation, but this is subject to change. In any case, considering your repository size now, you shouldn't be blocked. However, we would like to recommend to you the following processes: 

  1. If you have large files you don't need to version, then you can use BFG or git filter-branch to remove them. The following documentation has a very good explanation of how to achieve this: 
  2. If you do need to version large files, you can convert them to LFS by using Git Large File Storage  

I also suggest that after whichever conversion you make, and after you run a git GC command locally, check again the local repo size with git count-objects -vH to see if it's a size that's good for you before you push. 

If you do this and push to the Bitbucket repo, the Bitbucket repository size will get increased again. No reason for alarm, it will need a git GC from our side for the changes to reflect, so you can let me know after you push. 

Please, feel free to share any additional questions or concerns regarding this case.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

Share your use cases: How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features to how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your tea...

47 views 0 1
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you