Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to check the size of a github repo

# Something like this should do...
# curl -s https://api.github.com/repos/author_name/the_repos_name_here  
#                        || 								                                   
#                        /
                                                          
curl -s https://api.github.com/repos/am15h/tflite_flutter_helper | jq '.size' | numfmt --to=iec --from-unit=1024

# For private repository

curl -s -H "Authorization: token GITHUB_TOKEN" https://api.github.com/repos/torvalds/linux | jq '.size' | numfmt --to=iec --from-unit=1024
 
PREVIOUS NEXT
Tagged: #check #size #github #repo
ADD COMMENT
Topic
Name
6+1 =