相关疑难解决方法(0)

如何使用命令行从私有github仓库下载单个原始文件?

在CI服务器上,我想获取我们在Github上维护的配置文件,以便可以在许多作业之间共享.我试图通过curl获取此文件,但这些方法都失败了(我得到了404):

# As advised by the oAuth docs
curl -H 'Authorization: token the_token' -L -o setup.sh https://raw.github.com/org/repo/file

# The url of the raw file after clicking to view it
curl -L https://raw.github.com/org/repo/file?login=username&token=the_token 
Run Code Online (Sandbox Code Playgroud)

curl oauth github

61
推荐指数
7
解决办法
5万
查看次数

标签 统计

curl ×1

github ×1

oauth ×1