Fine! just modify it if you want to use a token, it's mandatory if you're using a 2 factor authentication:
curl -H "Authorization: token $TOKEN" https://api.github.com/user/repos -d "{\"name\":\"$repo_name\"}"
Fine! just modify it if you want to use a token, it's mandatory if you're using a 2 factor authentication: