Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A sample .gitconfig file.
editor = edite
name = FIXME put your name here, to be included into each commit
email = FIXME put your e-mail address here, to be included into each commit
ui = auto
st = status
log = true
default = simple
recurseSubmodules = check
[guitool "'Git add' other-than-just-whitespace changes."]
cmd = git diff -w --no-color \"$FILENAME\" | git apply --cached --ignore-whitespace
needsfile = yes
[guitool "Edit in preferred editor"]
cmd = editor \"$FILENAME\"
noconsole = yes
needsfile = yes
ediff = difftool -t ediff
[difftool "ediff"]
cmd = \"$LOCAL\" \"$REMOTE\"
diffcontext = 1
fontdiff = -family \"Envy Code R\" -size 8 -weight normal -slant roman -underline 0 -overstrike 0
fontui = -family \"DejaVu Sans\" -size 8 -weight normal -slant roman -underline 0 -overstrike 0
# for $deity's sake, check that anything we're getting is complete and sane on a regular basis
fsckobjects = true
fsckobjects = true
fsckObjects = true
# [git - propagating repo corruption across clone](
# [#743227 - "git -c transfer.fsckobjects=true clone" fails - Debian Bug report logs](
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
date = iso
# This graphviz DOT generator is very hackish and won't work always.
graphviz = "!f() { echo 'digraph git { node[shape=rectangle]' ; git log --pretty='format: %h -> { %p }; %h [ label=\"%h\\n%ci\n%d\" ] ; ' \"$@\" | sed -e 's/ \\([0-9a-f][0-9a-f][0-9a-f][0-9a-f]*\\)/ \"\\1\"/g' -e 's/, /\\\\n/g' ; echo '}'; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.