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

Need Git GC on remote

felix.peng
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!
October 31, 2022

Hello,

 

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.

 

Thanks!

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.
November 2, 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: https://jira.atlassian.com/browse/BCLOUD-11593

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

Kind regards,
Theodora

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.
November 1, 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
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events