https://gist.github.com/YimianDai/7dcf6340fc435323a328634df0666f5e
$ curl -u "{:username}" https://api.github.com/repos/{:organization}/{:repository}
把花括号内的包括花括号替换成相应的内容即可,比如我的 curl -u "yimiandai" https://api.github.com/repos/yimiandai/images
没有 {:organization}
就跳过,在输出的最后倒数 30 行附近,有一个 size,后面的数字就是这个 repo 的大小,单位是 KB。
在终端中直接看到
`$ curl -u "{:username}" https://api.github.com/repos/{:organization}/{:repository} | grep size`
中间会跳出来让你输入 github 的密码