Skip to content

Instantly share code, notes, and snippets.

Last active February 15, 2016 09:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Interweber Gitconfig
name = Vorname Nachname
email =
signingkey = GPG KEY
ui = true
gpgsign = true
excludesfile = ~/.gitignore
compression = -1
browse = log --graph --pretty=format:'%Cred%h%Creset %Cblue(%aN)%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr, %ar)%Creset' --abbrev-commit --date=short
tree = log --graph --pretty=format:'%Cred%h%Creset %Cblue(%aN)%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr, %ar)%Creset' --abbrev-commit --date=short -n 32
st = status
co = checkout
up = pull
a = add
c = commit -v
b = branch
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
commit = commit -S
default = tracking
whitespace = nowarn
postBuffer = 52428800 # 50M.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment