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
Community Members
Community Events
Community Groups

Need git gc on remote



I migrated a ton of files to LFS. I need a git gc to be able to work on my repo again. It is a shared workspace so I can't do it through the experimental feature.


Thank you

2 answers

1 accepted

0 votes
Answer accepted

Hi @EtienneEtienneEtienne,

I ran a git gc on the repo and its size is 2.6 GB now.

Does this agree with the size of your local repo after you migrated files to LFS?

Just a heads up, I removed the repo url from your post to comply with our privacy policy.

Kind regards,


Yes sorry for the url, didn't know how you would find the repo without me linking it.

Repo size shouldve been way less. Think my push failed after my lfs migrate. I did the whole thing again and double checked it, should be good ! Could you run it again ?

Thank you for your time

Hi @EtienneEtienneEtienne,

Of course, I ran another git gc on the repo, its size is 33.2 MB.

Does the size agree with your local one now?

No worries about the repo url. Alternatively, you can just mention the last two letters of the repo name, or the repo name masked (with some asterisks included and showing only a few letters that can help us identify it), and we can then check which one it is from the ones you have access to.

Kind regards,

Way better ! Thank you Theodora for your time, have a nice day.

You are very welcome, I'm glad to have helped!

Please feel free to reach out if you ever need anything else.

Have a nice day too,

0 votes
Robert Wen Community Leader May 27, 2022

Just escalated this so someone from Atlassian can do it.

Suggest an answer

Log in or Sign up to answer
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,263 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