Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need git gc on remote / lock issue

Ryan
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!
July 17, 2019

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
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2019

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.

Cheers,
Daniil

Ryan
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!
July 17, 2019

Will do, thanks for the help.

Like # people like this
Rump_ Matthias
Contributor
June 18, 2020

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?

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 18, 2020

Hello @Rump_ Matthias,

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.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events