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

my repository size appears bigger than it is

pat November 27, 2019

Hi,

 

My repository was complained it is over 1GB, but the actual size is less than 1GB, any advice on how to fix this? thanks

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 28, 2019

Hello @peppaPat,

Thanks for reaching out.

I ran garbage collection on the repository I believe you're talking about, but that didn't reduce its size. This means that all files are reachable from at least one ref (branch of tag), that is entire 1GB of data belongs to the repository.

One thing I can suggest is to check whether you've accidentally committed large files (binaries, for instance). You need to identify these files and remove them from your repository if they shouldn't be there. You can use, for instance, this command:

git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | tail -n 10

This will show 10 largest files reachable from HEAD (fourth column is size in bytes).

Hope this helps. Let me know if you have any questions.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events