git Git Configuration and aliases

Nothing fancy here, just the fast and dirty bootstrap steps to have a pleasant git environment.

My git aliases

git config --global alias.ci commit
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

My user setup

git config --global user.name "Romain Dorgueil"
git config --global user.email "romain@dorgueil.net"

Colors (not required after git 1.8.4)

git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto

or

git config --global color.ui true

Share the love!

Liked this article? Please consider sharing it on your favorite network, it really helps me a lot!

You can also add your valuable insights by commenting below.