开发者

Create new Git repo at GitHub through restful API?

开发者 https://www.devze.com 2023-01-15 11:02 出处:网络
Is it possible to create a new Git Repo 开发者_如何学JAVAat GitHub through restful API and not manually through their site?Yes, see the Repositories API page.You do a post to repos/create with at leas

Is it possible to create a new Git Repo 开发者_如何学JAVAat GitHub through restful API and not manually through their site?


Yes, see the Repositories API page. You do a post to repos/create with at least a name parameter.


Check out the Github gem for example uses of the Github API; here's the implementation of the create command.


give this a try: curl -u "USERNAME:PASS" -F 'name=REPONAME' http://github.com/api/v2/json/repos/create

from: http://develop.github.com/p/repo.html

0

精彩评论

暂无评论...
验证码 换一张
取 消