Skip to content

Instantly share code, notes, and snippets.

@mikepsinn
Last active March 14, 2018 23:42
Show Gist options
  • Select an option

  • Save mikepsinn/00a4153544a31bb6c645da13e4a9a26e to your computer and use it in GitHub Desktop.

Select an option

Save mikepsinn/00a4153544a31bb6c645da13e4a9a26e to your computer and use it in GitHub Desktop.
#!/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