對於公共回購,你有this gist列出一些例子:
wget --no-check-certificate https://github.com/sebastianbergmann/phpunit/tarball/3.5.5 -O ~/tmp/cake_phpunit/phpunit.tgz
對於私人回購協議,嘗試通過你的證書信息後指令:
wget --quiet --post-data="login=${login}&token=${token}" --no-check-certificate https://github.com/$ACCOUNT/$PRIVATE_REPO/tarball/0.2.0.257m
或者使用curl命令,如SO問題「git equivalent to svn export
or github workaround」,也在很詳細的解釋:
「A curl tutorial using GitHub's API」 。
的OP Steven Jp報告作出的curl
指揮工作:
最後的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
您是否嘗試過公共回購相同的URL方案? – CharlesB 2012-04-06 16:13:58
你試過wget嗎?或者只是使用git克隆特定標籤的代碼? – 2012-04-06 17:09:24