Alexander Mills
Alexander Mills

Reputation: 100300

Downloading source code from Github with cURL etc

Is there a Github mirror that provides faster downloads than raw.githubusercontent.com?

Right now, this command takes forever:

 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

Upvotes: 0

Views: 186

Answers (1)

Steve Bennett
Steve Bennett

Reputation: 126637

RawGit is probably faster, if you use the production URL.

https://rawgit.com/

Upvotes: 1

Related Questions