Missed Team ’24? Catch up on announcements here.

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

Repository size not updating

Poby Zaarif
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 12, 2023

hello, 

I'm new here, and a new employee from a company, 

I have a question about repo size, this repo detected over 500MB, since I know the real size should be not over 60MB

I run this command


$ git count-objects -vH

count: 0

size: 0 bytes

in-pack: 2278

packs: 1

size-pack: 151.88 MiB

prune-packable: 0

garbage: 0

size-garbage: 0 bytes

$ du -sh *

165M node_modules

4.0K package.json

428K pages

 50M public

136K src

8.0K styles

148K yarn.lock


I know the node_modules there should be ignored.

and I know before I come here .next folder was incidentally committed by the legacy team. and it's already been cleanup by me and added to .gitignore.

also, I read several articles from community.atlassian.com , or here specific topic about repo size, and mostly the solving is from Atlassian Team, can you please fix my repo size by run git gc too?

 

thanks

1 answer

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 13, 2023

Hello @Poby Zaarif and welcome to the Community!

I went ahead and triggered a GC on your repository to remove any dangling objects that might have been left from your cleanup. The git GC reduced the repository size back to 234.8MB!

Now that GC is completed, I would highly recommend you having everyone on your team removing their old copies of the repository and doing 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.

If you would like to reduce the size further, I would suggest following the steps outlined in the following article : 

Please note that to remove a previously committed large file(s) from your repository you might need to rewrite the history with a tool such as BFG (see How to remove files from commit history). 

Thank you, @Poby Zaarif !

Patrik S

Poby Zaarif
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 13, 2023

thank you for helping us @Patrik S 

Like Patrik S likes this

Suggest an answer

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

Atlassian Community Events