Aug 29, 2010

Basic Git Configuration

I recently purchased a new machine and had to configure Git again. The email/user setup it reminds you of but I couldn't remember how to configure color output without some digging. So I decided to share it here just in case anyone else may find it useful.

git config --global user.name "Your Name Comes Here"
git config --global user.email you@yourdomain.example.com
git config --global core.editor "vim"
git config --global core.excludesfile ~/.gitignore
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global color.interactive auto
view raw git-config.sh hosted with ❤ by GitHub