Skip to content

Instantly share code, notes, and snippets.

@bufordtaylor
Created April 11, 2014 19:30

Revisions

  1. bufordtaylor revised this gist Aug 9, 2014. No changes.
  2. bufordtaylor renamed this gist Aug 9, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. bufordtaylor created this gist Apr 11, 2014.
    49 changes: 49 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    [alias]
    st = status
    co = checkout
    br = branch
    st = status
    ci = commit
    w = whatchanged
    abbrev = !sh -c 'git rev-parse --short ${1-`echo HEAD`}' -
    [gc]
    auto = 1

    [color]
    diff = auto
    status = auto
    branch = 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]
    lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
    [user]
    name = xxx
    email = xxxx@gmail.com
    [pager]
    show-branch = true
    status = cat
    [difftool]
    prompt = false
    [core]
    trustctime = false
    excludesfile = .vagrant
    editor = vim