Considering the commands are for a full repo (list, get, edit, ...), it should reference the full size of the elements in that repo, as mentioned in "See the size of a github repo before cloning it?".
It seems to be in Kb:
- for small repos like the example repo "HelloWorld":
"size": 140,
: once I clone it, it register on my hard-drive slightly under 140 Kb,
- and for larger repos (like the git repo itself, more than 40Mo:
"size": 40844,
).
Update (February 2013, from nulltoken's comment)
The answer "See the size of a github repo before cloning it?" confirms that the size is in Kb for git alternates objects.
The disk usage against the bare repository doesn't account for the shared object store and thus returns an "incomplete" value through the API call.