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

need GC run on server (repository is over 2 GB, BFG tool does not help)

stargazer33 February 21, 2023

For one of my repositories I got a "...repository is over 2 GB" warning.
I used BFG tool on "bare reposotory", than pushed the results back into bitbucket (by the way, the "bare reposotory" is about 28MB, not 2GB!)
Still I see the "Repository size=2.02 GB"

Would somebody please run gc on bitbucket server?

Repositry URL: <redacted>


thanks in advance!
Dmitri

UPDATE:
here the result of "git count-objects -Hv" on local (bare) repository:


count: 0
size: 0 bytes
in-pack: 76672
packs: 3
size-pack: 24.78 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

 

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 21, 2023

G'day, @stargazer33 

I have triggered Git GC on the affected repository, and the size has been reduced to 24 MB.

Could you please review it and let me know how it goes?

I hope this helps.

Cheers,
Syahrul

stargazer33 February 22, 2023

Excellent! Many thanks!

 

Just for my understanding:
I know this repository will grow with the time.
From my side - I can run BFG and "git gc" from time to time.


What else I can do to prevent gigabyte-size of the repository?

Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2023

G'day @stargazer33 

Thanks for the update

Essentially repository size increase over time is normal. However, if the size increase happens overnight, the issue is likely because a user pushes large binary files into the repository.

You can use gitignore to ignore specific file patterns etc to prevent the accidental push of large files into the repository.

Sample gitignore to ignore a specific file pattern; https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#_ignoring

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events