-
-
Save jocelyn/2351771 to your computer and use it in GitHub Desktop.
shell command to get a GitHub OAuth token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sh get_token.sh user pass | |
| curl -s -d '{"scopes":["repo"],"note":"admin script"}' -u "$1:$2" -XPOST https://api.github.com/authorizations | grep token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment