Skip to content

Instantly share code, notes, and snippets.

@treeder
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treeder/c59aae71fd6f67bd57e1 to your computer and use it in GitHub Desktop.
Save treeder/c59aae71fd6f67bd57e1 to your computer and use it in GitHub Desktop.
read -p "What is your full name for git? " git_name
read -p "What is your email for git? " git_email
git config --global user.name $git_name
git config --global user.email $git_email
# .netrc file for github, Go tool uses this
# Could try to change to: https://coderwall.com/p/jtujgw , but json parsing might be hard part
read -p "What is your github username? " github_username
read -p "What is your github password? " github_password
echo "machine github.com login $github_username password $github_password" > $HOME/.netrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment