Skip to content

Instantly share code, notes, and snippets.

@falsefalse
Created July 31, 2014 11:00
Show Gist options
  • Select an option

  • Save falsefalse/d7dd330075999ebe9e55 to your computer and use it in GitHub Desktop.

Select an option

Save falsefalse/d7dd330075999ebe9e55 to your computer and use it in GitHub Desktop.

Revisions

  1. falsefalse created this gist Jul 31, 2014.
    56 changes: 56 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    # mostly taken from http://cheat.errtheblog.com/s/git
    [core]
    whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
    # display tab as 2 spaces instead of 8
    # http://www.liferay.com/web/raymond.auge/blog/-/blogs/setting-tabwidths-to-match-the-project-settings-in-git-and-vi
    pager = less -FXRS -x2
    [color]
    ui = auto
    [color "branch"]
    current = yellow reverse
    local = yellow
    remote = green
    [color "diff"]
    meta = yellow bold
    frag = magenta bold
    old = red bold
    new = green bold
    whitespace = red reverse
    [color "status"]
    added = yellow
    changed = green
    untracked = cyan

    [alias]
    st = status
    br = branch
    ft = fetch

    blame = blame --date=short

    ci = commit
    cia = commit --amend
    ciac = commit --amend --reuse-message HEAD

    co = checkout

    df = diff
    dff = diff --cached

    ldf = log -p
    gl = log --graph
    lol = log --graph --decorate --pretty=oneline --abbrev-commit

    # fucking typos
    tags = tag

    [diff]
    algorithm = patience
    [push]
    default = current

    [user]
    name = <Your Name>
    email = <[email protected]>