Skip to content

Instantly share code, notes, and snippets.

@skinp
Created September 25, 2012 18:54
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 skinp/3783724 to your computer and use it in GitHub Desktop.
Save skinp/3783724 to your computer and use it in GitHub Desktop.
Setup git environment
#!/bin/bash
if [ $# -ne 2 ]
then
echo "Usage: $0 <name> <email>"
exit 1
fi
git config --global user.name $1
git config --global user.email $2
git config --global credential.helper cache
git config --global color.ui 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment