Skip to content

REST API v3: Not able to create repo using the code given in the guide #24385

Discussion options

You must be logged in to vote

Try this, I think it’s cleaner:

curl -i -X POST https://api.github.com/user/repos \
-H "Authorization: token <OAuth token>" \
-d @- << EOF
{
  "name": "blog",
  "auto_init": true,
  "private": true,
  "gitignore_template": "nanoc"
}
EOF

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants