Skip to content

Instantly share code, notes, and snippets.

@thelmuth
Created June 15, 2012 13:04
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 thelmuth/2936388 to your computer and use it in GitHub Desktop.
Save thelmuth/2936388 to your computer and use it in GitHub Desktop.
Tom's Git Config Shell Script
git config --global user.name 'Tom Helmuth'
git config --global user.email email@address.here
git config --global core.editor emacs
git config --global color.ui true
git config --global alias.st status
git config --global alias.ch checkout
git config --global alias.br branch
git config --global alias.last 'log -1 HEAD'
git config --global alias.brlog 'log --pretty=format:"%h %an: %s" --graph'
git config --global alias.brlogd 'log --pretty=format:"%ad : %h : %an | %s" --date=short --graph'
git config --global alias.aliases 'config --get-regexp alias'
@thelmuth
Copy link
Author

This is a shell script that can be run to easily setup a new Git environment. It includes some important things (name, email, editor), some nice things (colors), and some aliases that I find useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment