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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,045
Community Members
 
Community Events
176
Community Groups

Repo Size Increased, please reduce.

Hi,

 

I already raised a issue about repository oversized and at that it was reduced from your end, but now again facing the same whereas, I have already removed the unwanted files but still after 2 months repo size is automatically increased.

 

Request you please reduce the size of repo from your end.

I ran "git gc"

Than I ran "git count-objects -vH"

Below is the output:

count: 0
size: 0 bytes
in-pack: 40155
packs: 1
size-pack: 1.45 GiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

 

Thanks,

Pankaj Mundra

1 answer

1 accepted

1 vote
Answer accepted

Hi @Pankaj Mundra,

Your Bitbucket Cloud account has access to several repositories. I saw one repo with a size close to the 4 GB limit, I ran a git gc for it and its size has been reduced.

In case you would like me to run a git gc for a different repo, could you please provide the repo name masked (i.e. a few letters that can help me identify it among the ones you have access to)?

Kind regards,
Theodora

Hi @Theodora Boudale ,

 

Thanks, you did the action on the required repository.

Just wanted to know, if there is any way next time I can do this step myself.

 

Also, can you please let me know what is the current size of the repository you ran the command.

 

Thanks,

Pankaj Mundra

Hi @Pankaj Mundra,

You are very welcome. The repo's size was 1.4 GB when I ran the git gc two days ago, and I see it is 1.5 GB now.

I'm afraid that it is not possible for end users to trigger a git gc for their remote repos.

A full garbage collection will run automatically if a repo is over the 4 GB limit and you push an update with a git reset. This is useful if the repo goes over the limit because of an accidental push of a large commit, you can read more details here:

In all other cases, you can create a question here and either I or one of my colleagues can trigger a git gc for your repo.

We have a feature request for what you are asking https://jira.atlassian.com/browse/BCLOUD-11593 . You can add your vote and comment there to further express your interest.

Kind regards,
Theodora

Hi @Theodora Boudale , can you please again run the command to reduce repo size.

Also, can you please check and tell me why every time the repo size increases, what is wrong I am committing.

Thanks,

Pankaj Mundra

Patrik S Atlassian Team Jan 25, 2023

Hey @Pankaj Mundra ,

I've just triggered a garbage collection in your repository and the size was reduced to 1.5GB.

Now that GC is completed, I would highly recommend you having everyone that has cloned that repository to remove their old local copies and do a fresh clone of it.

Since the old clones have a dirty history, it's better to delete them, so you don't risk pushing the dangling objects back into your cleaned repository, which would increase its size again.

Thank you, @Pankaj Mundra !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events