Last active
March 14, 2018 23:42
-
-
Save mikepsinn/00a4153544a31bb6c645da13e4a9a26e to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env bash | |
| # curl https://gist.githubusercontent.com/mikepsinn/00a4153544a31bb6c645da13e4a9a26e/raw/git_config.sh | bash -s ${GITHUB_ACCESS_TOKEN} | |
| echo "Using GITHUB_ACCESS_TOKEN $1" | |
| GITHUB_ACCESS_TOKEN=$1 | |
| if [ -z ${GITHUB_ACCESS_TOKEN} ]; then | |
| echo "GITHUB_ACCESS_TOKEN not set!" | |
| exit 1 | |
| fi | |
| echo "git config --global user.email m@quantimodo.com" | |
| git config --global user.email "m@quantimodo.com" | |
| echo "git config user.name Mike Sinn" | |
| git config --global user.name "Mike Sinn" | |
| echo "git config --global github.token ${GITHUB_ACCESS_TOKEN}" | |
| git config --global github.token ${GITHUB_ACCESS_TOKEN} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment