【发布时间】:2016-02-23 14:48:00
【问题描述】:
试过这个:
TOKEN="bla"
wget -r --no-parent --reject "index.html*" https://api.github.com/repos/organiztion/RepoName/contents/Framework/deploy_scripts/ --header "Authorization: token $TOKEN" --header 'Accept: application/vnd.github.v3.raw'
我得到一个包含目录中所有文件列表的文件。我想要实际的文件而不是列表。
而不是编写一个 bash 脚本来循环文件并下载所有文件。
我更喜欢“原始”的解决方案,意思是 wget 或 curl 而不是 svn,拜托。
【问题讨论】: