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