Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
克隆没有部署密钥的私有github repo?_Git_Github_Cloning - Fatal编程技术网

克隆没有部署密钥的私有github repo?

克隆没有部署密钥的私有github repo?,git,github,cloning,Git,Github,Cloning,我正在尝试构建一个应用程序,它可以克隆一个人的私有repo(在允许的情况下),并对其运行分析,类似于codecclimate所做的。我希望这样做时不使用部署密钥或破坏ssh。我注意到codeclimate使用Oauth for github,只需单击一次,但我在我的应用程序上测试了这一点,遇到了我在这个问题中概述的问题: 那么,在授予权限且用户不使用我的github应用程序创建部署密钥的情况下,我可以使用什么方法克隆私有git repo呢?首先看一下github api: 通过身份验证后,您可

我正在尝试构建一个应用程序,它可以克隆一个人的私有repo(在允许的情况下),并对其运行分析,类似于codecclimate所做的。我希望这样做时不使用部署密钥或破坏ssh。我注意到codeclimate使用Oauth for github,只需单击一次,但我在我的应用程序上测试了这一点,遇到了我在这个问题中概述的问题:


那么,在授予权限且用户不使用我的github应用程序创建部署密钥的情况下,我可以使用什么方法克隆私有git repo呢?

首先看一下github api:

通过身份验证后,您可以查看用户报告:

选择回购后,您还可以从api执行“git”调用:

您可以读取提交、blob、树、分支、标记、引用。。。几乎所有的东西

  • 在github中定义您的应用程序:
  • 添加部署(公钥)密钥:
  • 调整ssh设置以使用此关联私钥
  • 具有特定uri的git克隆

  • 我注意到了,是的,但我试图复制整个回购协议,而不仅仅是阅读数据