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
精彩评论