Last active
August 29, 2015 14:00
-
-
Save treeder/c59aae71fd6f67bd57e1 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
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