Skip to content

Instantly share code, notes, and snippets.

@sethvincent
Last active July 16, 2017 20:58
Show Gist options
  • Select an option

  • Save sethvincent/1754789 to your computer and use it in GitHub Desktop.

Select an option

Save sethvincent/1754789 to your computer and use it in GitHub Desktop.
setting up git
#!/bin/bash
# download this file to your vagrant box:
# wget https://gist.githubusercontent.com/sethvincent/1754789/raw/git-config.sh
# curl -o- https://gist.githubusercontent.com/sethvincent/1754789/raw/git-config.sh | bash
# run this script to set up git:
# sh ./git-config.sh
echo "OH HEY, LET'S SET UP GIT!!!"
echo -n "enter your name: "
read GITNAME
git config --global user.name "$GITNAME"
echo -n "enter your email address: "
read EMAIL
git config --global user.email "$EMAIL"
echo -n "enter a name for your ssh key: "
read SSHKEY
ssh-keygen -t rsa -C "$SSHKEY"
cat ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment