What's In Your .gitconfig?

In Uncategorized

git-logo_medI have been using git for over 2 years now. My current .gitconfig is below. What’s in your .gitconfig?

[user]
    name = vinod (mercury)
    email = myname@mydomain.com
    editor = vim
[diff]
    tool = vimdiff
[color]
    branch = auto
    diff = auto
    status = auto
    interactive = auto
    ui = true
    pager = 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
[alias]
    st = status
    ci = commit
    br = branch
    df = diff
    lg = log -p
    co = checkout
    tree = log --graph --pretty=oneline --decorate
    pom = push origin master
    amend = commit --amend -C HEAD
[core]
    pager = less -FRSX
    whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[apply]
  whitespace = fix

Happy Giting 🙂

One Comment

Jonathan Wright March 19, 2010

tree = log –graph –pretty=oneline –decorate

can be simplified to:

tree = log –graph –oneline –decorate