Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,487
Community Members
 
Community Events
165
Community Groups

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,
Caroline 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,179 views 2 9
Read article

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