Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Edited

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.
Feb 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

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.
Feb 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