2

I would like to view the total repository size of a project hosted on GitLab without having to clone it.

I was able to find one for GitHub here, but I can't figure out how to do it on GitLab.

The GitHub example:

$ echo https://github.com/hlamer/enki.git | perl -ne 'print $1 if m! 
([^/]+/[^/]+?)(?:\.git)?$!' | xargs -i curl -s -k 
https://api.github.com/repos/'{}' | grep size


 >>"size": 284,

1 Answer 1

0

GitLab UI may have changed since the original question, but it looks like the size is displayed at the top of the web UI main screen for the repo.

For example, I have a repo that looks like this:

                                <PROJECTNAME>
                                project id 26867

3 Commits  1 Branch 0 Tags **8.5 GB Project Storage**

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.