从github检索私人存储库提交 [英] Retrieve private repository commits from github

查看:142
本文介绍了从github检索私人存储库提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从github上的私有存储库中检索所有提交。

I need to retrieve all commits from Private repositories on github.

我已经尝试使用github API文档。它提供用于检索公共存储库提交的API。
https://api.github.com/repos/:owner/ :repo / commits

I already tried with with github API documentation. It provides the API for retrieving the public repository commits. https://api.github.com/repos/:owner/:repo/commits

任何人都可以帮助我从私人存储库中获取所有提交的内容?

Anybody can help me for taking all commits from private repositories?

推荐答案

私有存储库意味着您需要进行身份验证才能执行查询(在此获取提交)。

如果您拥有私人备份,则这应该可以工作: / p>

A private repository means you need to authenticate in order to execute your query (here getting the commits).
This should work, if you own the private repo:

curl -u 'username:password' https://api.github.com/repos/:owner/:repo/commits

这篇关于从github检索私人存储库提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆