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

Why is my repository size 6 gb

nicolaedamaschin May 17, 2024

Hi, i was having problems with my repository size, it was almost 4gb big so i used the BFG Repo Cleaner to remove big files, after that i removed the whole history by creating a new branch pushing everything on this branch and replacing it with the old main branch. As shown in this video: How To Remove GIT History And Make Your Repo Smaller (youtube.com).

But the repo size is now 6.39gb big. What did i do wrong?

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2024

Hi @nicolaedamaschin  and welcome to the community!

If you rewrite history in a repo, we will need to run a garbage collection so that the old references are removed and the change in size is reflected. Your repo's size went up because the repo contains both old references (before the history rewrite) and new references (after the history rewrite).

Please provide me with the last two letters of the repo name and the workspace it belongs to (or any combination of letters that will help me identify it among the ones you have access to) so that I can run a git gc on it.

Kind regards,
Theodora

nicolaedamaschin May 21, 2024

Hi, 

thanks for the answer!

My workspace name ist Nicolae Damaschin and my repo name starts with SpookyP.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2024

Hi,

Thank you for the info!

I ran a garbage collection on the repo and its size is 2.5 GB now. Does this agree with the size of your local repo?

Kind regards,
Theodora

nicolaedamaschin May 22, 2024

Yes it does, thank you so much for your help!

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2024

You are very welcome! Please feel free to reach out if you ever need anything else!

Suggest an answer

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

Atlassian Community Events