简体   繁体   English

如何通过Github API克隆,推送和拉取Github存储库

[英]How to clone, push and pull Github repository via Github API's

I newly start working with Github API's and I wanted the functionality of clone push and pull of Github repository with Github API's. 我刚开始使用Github API,我想要使用Github API进行Github存储库的克隆推送和拉取功能。 Any suggestions about this. 关于此的任何建议。

GitHub's API 's are not for working with Git. GitHub的API不适用于Git。 They are for working with Github . 他们是与Github合作 Working with Github repositories (on Github), issues, pull requests, that sort of thing. 使用Github存储库(在Github上),发出问题,拉取请求之类的事情。 Operations such as cloning, pushing, and pulling are Git operations. 克隆,推入和拉入等操作都是Git操作。

To push/pull/clone programmatically you can use the normal Git binary. 要以编程方式推/拉/克隆,可以使用普通的Git二进制文件。 Or you can use libgit2 . 或者,您可以使用libgit2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM