Is there any way to estimate the size of a public Git repository without having to clone it?
I\'d like to use this information to make sure the reposito
Short answer: "no."
If space is a concern at all, clone the repo to your largest available freespace and if it's dinky enough to put elsewhere moving it will be cheap.
A really brute-force way to get it: put this in e.g. your post-receive hook on the server
git for-each-ref refs/size | while read . . ref; do git update-ref --delete $ref; done
set -- $(du -sh .git/objects)
git update-ref refs/size/$1-as-of-$(date +%Y%m%dT%H%M%S%Z) HEAD
and you can just ls-remote for it.