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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


How to push when the repo size is over the size limit?

Hello, there.

We are having an issue with a repository that has exceeded the file size limit, and no longer accepts pushing more commits. The account that pushes to this repository has already activated the "delete dangling commits when over the size limit" lab feature, and made a force push to undo the latest commit on a branch. We believe that the way to solve this is by running the gc command on your side. Is this correct? Or is there something else we can do ourselves to fix this issue? This is the repo URL:

Moreover, we would like to know if the previously mentioned lab feature triggers the garbage collection when pushing from an external CI system. For instance, we are performing this steps in our automated workflow to prevent going over the size limit each time we make a commit (due to the fact that the repository is being used as a sort of deployment platform for an application, so we don't care about preserving commit history in this use case):

git checkout $checkoutBranch
latestCommitId=$(git rev-parse HEAD)
if [ "$latestCommitId" != "${{ vars.DEPLOYMENT_REPO_HARD_RESET_COMMIT_ID }}" ]
git reset --hard ${{ vars.DEPLOYMENT_REPO_HARD_RESET_COMMIT_ID }}
git push --force

After that, we commit and push using:

git add .
git commit -m "Version ${{ ref_name }}"
git push

Thanks in advance for the help.

2 answers

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 09, 2023

Hello @Ignacio Mosconi ,

Welcome to Atlassian Community! 

I noticed you have opened an internal ticket with us, and a Support Engineer from Bitbucket already manually triggered the GC for your repository, which decreased the size to 2GB.

Just sharing the outcome of the internal ticket, the automatic GC should be triggered when a force push is executed in the repository. However, t if the repository is pushed again with dirty dangling commits from a different local machine, these dangling commits will be reinstated, which will cause the repository size to balloon back up to its previous size.

If you encounter a situation where the automatic GC was not able to clear the dangling commits and reduce the repository size, please feel free to Raise an internal ticket with us and we can manually trigger it for your repository.

Thank you, @Ignacio Mosconi !

Patrik S

Hi, @Patrik S !

We were able to solve the issue thanks to the manual GC run on your side. Thank you very much!

Like Patrik S likes this
0 votes
Jens Schumacher - Released_so
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Mar 08, 2023

Hi @Ignacio Mosconi 


Atlassian Knowledge Base has a good summary of actions you can take to reduce the repository size


Hope this helps.

Jens - Release notes powered by Jira

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events