使用cURL等从Github下载源代码



有没有比 raw.githubusercontent.com 更快的下载速度的Github镜像?

现在,此命令需要很长时间:

curl -H 'Cache-Control: no-cache' 
"https://raw.githubusercontent.com/oresoftware/shell/master/assets/package.json?$(date +%s)" 
--output "$dest/package.json" 2> /dev/null

如果你使用生产URL,RawGit可能会更快。

https://rawgit.com/

最新更新