公開リポジトリの場合、いくつかの例をリストしたこの要点があります。
wget --no-check-certificate https://github.com/sebastianbergmann/phpunit/tarball/3.5.5 -O ~/tmp/cake_phpunit/phpunit.tgz
プライベート リポジトリの場合は、認証情報を post ディレクティブで渡してみてください。
wget --quiet --post-data="login=${login}&token=${token}" --no-check-certificate https://github.com/$ACCOUNT/$PRIVATE_REPO/tarball/0.2.0.257m
または、SO の質問「git と同等svn export
または github の回避策」のように curl コマンドを使用します。「 GitHub の API を使用した curl チュートリアル
」でも詳細に説明されています。
OP Steven Jpcurl
は、コマンドが機能したことを報告しています。
最終的な curl コマンドは次のようになりました。
curl -sL --user "${username}:${password}" https://github.com/$account/$repo/tarball/$tag_name > tarball.tar
(読みやすくするために複数行に分けています)
curl -sL --user "${username}:${password}"
https://github.com/$account/$repo/tarball/$tag_name
> tarball.tar