Skip to content

Instantly share code, notes, and snippets.

@JamesKyburz
Created December 1, 2011 09:15
Show Gist options
  • Save JamesKyburz/1415243 to your computer and use it in GitHub Desktop.
Save JamesKyburz/1415243 to your computer and use it in GitHub Desktop.
My git config
# run like this USER_NAME="?" USER_EMAIL="?" GITHUB_USER="?" GITHUB_TOKEN="?" bash < <(curl -s "https://raw.github.com/gist/1415243/setup_git_config.sh")
git config --global user.name "$USER_NAME"
git config --global user.email "$USER_EMAIL"
git config --global color.branch "auto"
git config --global color.diff "auto"
git config --global color.interactive "auto"
git config --global color.status "auto"
git config --global branch.autosetuprebase "always"
git config --global alias.co "checkout"
git config --global alias.ci "commit"
git config --global alias.st "status"
git config --global alias.lo "log --graph -last:3"
git config --global alias.unstage "reset HEAD --"
git config --global push.default "tracking"
git config --global help.autocorrect "1"
git config --global github.user "$GITHUB_USER"
git config --global github.token "$GITHUB_TOKEN"
git config --global branch.master.mergeoptions "always"
git config --global core.autocrlf false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment