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!


Need Git GC on remote



I have a repository that is approaching the size limit of 4GB. It was ported over from a previous repository that hit the size limit due to some large files being pushed. However, the long commit history seems to be inflating the repository size greatly. I have tried several methods on my machine to reduce the repo size, but to no avail. I would appreciate any assistance with running a gc on the remote side.



2 answers

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 02, 2022

Hi @felix.peng and welcome to the community!

I can see two repositories, owned by your personal workspace, that are close to the 4 GB limit. I ran a git gc for both of them and their size has been reduced. In case your request concerns a repo owned by a workspace other than your personal one, please let me know the first two letters of the workspace and repo so I can identify it and run a git gc for it.

If you would like to further reduce the repos' size, you can check this post of mine in a different question with more details:

If you decide to proceed with the steps I mention in that post and rewrite history in the repo with BFG, please keep in mind that the repo's size will get increased again once you push your changes. The repo will then need another git gc for the old commits (prior to history rewrite) to get removed and for its size to get reduced.

You can let me know here and I can then run another git gc for the repo. It is not possible for users to trigger git gc for their remote repos at the moment, but we have a feature request that you can vote for and add yourself as a watcher for updates:

If you have any questions, please feel free to let me know.

Kind regards,

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 01, 2022

I think you can ask for this via the official Bitbucket support channel and they will GC the repo for you.

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events