GIT: Configuration

Using GIT became my daily content. How about making my day happier? More colorful? 🙂

Just replace [REAL NAME] with your real name and [EMAIL ADDRESS] with your real email address.

#!~/.gitconfig
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "diff"]
whitespace = red reverse
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
[user]
name = [REAL NAME]
email = [EMAIL ADDRESS]

Setting author name and email can be done also via git config:

$ git config --global user.name "Your Name Comes Here"
$ git config --global user.email you@yourdomain.example.com

Leave a Reply

Your email address will not be published. Required fields are marked *