开发者

Create new Git repo at GitHub through restful API?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜