Home > Uncategorized > What's In Your .gitconfig?

What's In Your .gitconfig?

March 18th, 2010

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 :-)

Categories: Uncategorized Tags:
  1. Jonathan Wright
    March 19th, 2010 at 01:05 | #1

    tree = log –graph –pretty=oneline –decorate

    can be simplified to:

    tree = log –graph –oneline –decorate

  1. No trackbacks yet.
Comments are closed.