1

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,

Your Answer

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

Browse other questions tagged or ask your own question.