我試圖下載Github受保護的repo中的項目的安裝腳本。如何僅從Github受保護的存儲庫獲取文件
user
和repo
被替換爲正確的信息。
我已經試過捲曲:
curl -u gabipetrovay -L -o install.sh "https://raw.github.com/user/repo/master/admin/scripts/install.sh"
捲曲提示輸入密碼,但只要我輸入第一個字符它更進一步,下載的東西(很多JS可能從GitHub)
我也試過wget的:
wget --user=gabipetrovay --ask-password "https://raw.github.com/user/repo/master/admin/scripts/install.sh"
隨着wget的,我可以進入我的完整密碼,但後來我得到一個503錯誤:
Resolving raw.github.com (raw.github.com)... 199.27.73.133
Connecting to raw.github.com (raw.github.com)|199.27.73.133|:443... connected.
HTTP request sent, awaiting response... 503 Connection timed out
2013-10-14 10:18:45 ERROR 503: Connection timed out.
如何獲取install.sh文件?
可能重複://計算器.com/questions/18126559/how-can-i-download-a-single-raw-file-from-a-private-github-repo-using-the-comman) –