"验证失败" github中的错误

时间:2014-07-03 18:41:43

标签: git github

我正在尝试使用curl命令在github上创建一个存储库但是它给了我以下错误:

{
  "message": "Validation Failed",
  "documentation_url": "https://developer.github.com/v3/repos/#create",
  "errors": [
    {
      "resource": "Repository",
      "code": "custom",
      "field": "name",
      "message": "name is too short (minimum is 1 characters)"
    },
    {
      "resource": "Repository",
      "code": "missing_field",
      "field": "name"
    }
  ]
}

我使用的代码是:

curl -u 'name' https://api.github.com/user/repos -d '{"name":"repo","description":"This     project contains .... "}' 

0 个答案:

没有答案