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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • 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

git gc on remote repo after using BFG-cleaner

Hi there,

 

My team's repo size exceed 1.0GB and I was successfully reduced its size to 490.1 MB. However, after I push the cleaned bare repo up, it moved those big blobs on remote to unreachable commit instead of removing them.

After some research, I found BitBucket admin has the ability to run a 'git gc' command on the remote repo to collect and clean those unreachable commits. Is that the only way to do this?

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted

Hello @qifan.wang,

As this guide suggests, you'd need to open a support case with us to force trigger GC. However, in your case it's not that important as 1 GB is a soft limit, i.e. you get a warning but can keep working with the repository just as normal. GC will eventually kick in and remove that large blob.

You didn't mention the repo in question so I took a guess which one you meant and ran GC for it which reduced its size significantly.

If that wasn't the right one, please proceed with opening a support case.

Cheers,
Daniil

Hi Daniil, your guess is correct and thank you so much for the quick turnaround!

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,897 views 0 7
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