&引用;“验证失败”;github中的错误

&引用;“验证失败”;github中的错误,git,github,Git,Github,我试图使用curl命令在github上创建存储库,但它给出了以下错误: { "message": "Validation Failed", "documentation_url": "https://developer.github.com/v3/repos/#create", "errors": [ { "resource": "Repository", "code": "custom", "field": "name", "

我试图使用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 .... "}' 

格式不正确。您需要提供repo名称作为用户名\repo名称。请查看此处。。我试过了,但也不起作用。你已经通过身份验证了吗?另一个拉取请求已经打开了吗?