# global git configuration [user] name = Example Person email = person@example.com [alias] # short status s = status -s l = log --pretty=oneline -n 20 --graph --abbrev-commit d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff" ca = !git add ':(exclude,attr:builtin_objectmode=160000)' && git commit -av go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f" [color "diff"] meta = yellow bold frag = magenta bold # line info old = red ; deletions [url "git@github.com:"] insteadOf = "gh:" [includeIf "gitdir:~/work/"] path = ~/.gitconfig-work [core] excludesfile = ~/.gitignore whitespace = space-before-tab,-indent-with-non-tab,trailing-space bare