I\'m trying to create a GitHub repo using the command line.
It was suggested here that you can use the following command:
curl -u \'USER\' https://ap
What I would do :
curl -u 'USER:PASWORD' https://api.github.com/user/repos -d '{"name":"REPO"}'
Tested OK on my github account. That way, you will not be prompted to type your password. It that doesn't work, maybe your password is not the good one (or username).
git@github.com:USER/REPO.git
is an ssh url, not an https one.
The "password" GitHub is asking you is because ssh doesn't find your public/private keys, and has nothing to do with your GitHub account password.
Use:
git remote add origin https://YourName@github.com/YourName/REPO.git
git push -u master
Then it will ask you for your http credentials.
If you don't want to enter it for each transaction, see "Is there a way to skip password typing when using https:// github".