使用cURL等从Github下载源代码

时间:2018-05-17 01:01:01

标签: shell curl github wget

是否有一个Github镜像提供比raw.githubusercontent.com更快的下载?

现在,这个命令需要永远:

 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

1 个答案:

答案 0 :(得分:1)

如果您使用生产网址,RawGit可能会更快。

https://rawgit.com/

相关问题