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

Cannot push due to repository size is to big

Daniel Salim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2024

Hi Atlassian team, I wanted to push some changes to my project. Turns out i've been uploading duplicate file and i already fixed it, and then i need to push, but when i push i got an error to it, 
> git push bitbucket master:master
remote: Repository is over the size limit (4 GB) and will not accept further additions.
remote:
remote: Learn how to reduce your repository size: https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits.
To https://bitbucket.org/workspace-id/repo.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://bitbucket.org/workspace-id/repo.git'

How do i fix it?

2 answers

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2024

Hi Daniel and welcome to the community!

I ran a garbage collection on your repository and its size has been reduced to 583.8 MB, so you should be able to push. Please feel free to let me know if it's ok on your end now.

Since your workspace is on a paid billing plan, you can also create a ticket with the support team in the future if you ever need help again to ensure a faster response. You can create a ticket via https://support.atlassian.com/contact/#/; in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as a product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Just a heads up, I removed the repo details from the URL to protect your privacy.

Kind regards,
Theodora

1 vote
Perisic Nikola
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2024

Welcome to the community @Daniel Salim 

Let me see if someone from Atlassian can answer this question. Usually Theodora does it, but maybe she is busy. I will tag atlassian on this question.

Reference: https://community.atlassian.com/t5/Bitbucket-questions/Repository-size-not-decreasing/qaq-p/2528331

Daniel Salim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2024

Thank you so much Perisic.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events