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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Need git gc on remote / lock issue

My repository is locked after accidentally committing some files which pushed it up to 2.5GB. I've undone several commits which most likely caused this but my repository size instead increased to 4.5GB.

Because its locked, I'm unable to push fixes from tools such as BFG repo-cleaner.

Can you run a "git gc" on the server to see if this fixes the issue?

1 answer

1 accepted

1 vote
Answer accepted

Hi @Ryan,

I think I identified the repository you described and triggered garbage collection. Repo size reduced significantly.

If you face similar issue in the future, feel free to open a support case here. It'd be easier for us to identify the right repo and also very likely quicker to resolve.


Will do, thanks for the help.

Like # people like this

Hi @Daniil Penkin 

We face a Similar Problem on our on premise Data Center.

Can you tell what You actually did to trigger a garbage collection on?

Hello @MatthiasRump,

This question is about Bitbucket Cloud and is not applicable to Bitbucket Server. According to the relevant documentation for Bitbucket Server, it is advised to never run garbage collection manually because of the way repository forking is implemented there.

Hope this helps.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

441 views 4 4
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