Skip to content

Instantly share code, notes, and snippets.

@xyng
Last active February 15, 2016 09:22
Show Gist options
  • Save xyng/4d1ea266037b35ca31d6 to your computer and use it in GitHub Desktop.
Save xyng/4d1ea266037b35ca31d6 to your computer and use it in GitHub Desktop.
Interweber Gitconfig
[user]
name = Vorname Nachname
email = vorname.nachname@interweber.de
signingkey = GPG KEY
[github]
user = GITHUB NAME
[color]
ui = true
[commit]
gpgsign = true
[core]
excludesfile = ~/.gitignore
compression = -1
[alias]
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
[push]
default = tracking
[apply]
whitespace = nowarn
[http]
postBuffer = 52428800 # 50M.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment