When I create a new Github repository by using the curl command as shown below, it always asks me to enter the password.
curl -u "$(git config user.name)" https://api.github.com/user/repos -d "{\"name\":\"$1\"}" | grep -q "Bad credentials"
Here is my question. How to use SSH to login Github and create a new repository by using the ssh keychain in the command line?