从GitLab私人存储库下载 [英] Download from a GitLab private repository
本文介绍了从GitLab私人存储库下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用curl从我的私人仓库在GitLab下载一个文件。我知道我可以使用Gitlab API,但由于某种原因,我不能使用它。
I want to use "curl" to download a file from my private repo in GitLab. I know I can use Gitlab API, but for some reason, I cannot use it.
这可以吗?
推荐答案
无需登录。在帐户下转到您的用户个人资料,然后复制您的私人令牌。
No need to sign in. Go to your user profile under Account then copy your private token.
然后,使用API,添加一个 private_token
查询参数,如下所示:
Then off you go with the API, adding a private_token
query param such as follow:
curl 'http://example.com/api/v3/projects?private_token=your_token'
这篇关于从GitLab私人存储库下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文