I empirically noticed a significant bandwidth difference between cloning Github repositories via HTTPS (~500 KB/s) and SSH (>10 MB/s).
During a release cycle, I often perform several git clone
s, which by default are configured to use HTTPS (as in, git clone https://...
), since it does not require authentication and is simpler for the user.
However, the repository contains about 100 MB (due to several versions, some binary files, etc.), so this command takes several minutes due to the bandwidth limit. If I change the git clone
command to use git://...
, it is downloaded at upwards of 10 MB/s, so it takes less than 10 seconds.
Ideally, the repository should be smaller, but anyway, I'd like to inform users about this difference, referring them to official documentation, but the help page Which remote URL should I use? does not mention it at all, neither does this SO question. The rate limit rules do not mention bandwidth either (and I am way below them, so it's unlikely to be the issue).
So I wonder: is this behavior known and reproducible for everyone? Could I be seeing some specific bandwidth throttling (possibly after having done several git clone
s in a short period of time)? I'd like to have an official source to refer users to.