git basic configuration

Here is the common git configuration I always set when I have a new development environment.

git config --global user.name "[First Name] [Last Name]"
git config --global user.email "someone@domain.com"
git config --global core.editor vim
git config --global push.default tracking
git config --global branch.autosetuprebase always
git config --global color.ui auto
git config --global log.date local
git config --global log.decorate short
git config --global rerere.enabled true
git config --global merge.conflictstyle diff3
git config --global core.autocrlf input

Leave a Reply