Files
dotfiles/gitconfig
2019-04-26 16:51:35 +02:00

89 lines
2.1 KiB
Plaintext

[alias]
br = branch
ca = commit -a
cam = commit -am
cl = clone
co = checkout
cr = codereview
df = diff
dfs = diff --stat
exclude = !sh -c 'echo "$1" >> .git/info/exclude' -
ignored = ls-files --others
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold cyan)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lgc = log ORIG_HEAD.. --stat --no-merges
lgp = log --pretty=format:'%Cred%h%Creset -- %cn, %cr\t%Cgreen%s%Creset'
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head && git checkout FETCH_HEAD; }; f"
pl = pull
ps = push
repourl = config --get remote.origin.url
shallow = clone --depth=1
st = status
tags = for-each-ref --sort='*authordate' --format='%(tag)' refs/tags
undo = reset --soft HEAD^
update-sub = submodule foreach git pull
wdiff = diff --color-words
who = shortlog -s --
wlog = log -p --word-diff=color
[apply]
whitespace = fix
[branch]
autosetupmerge = always
[color]
branch = auto
diff = auto
interactive = auto
ui = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "grep"]
match = bold magenta
[color "interactive"]
prompt = normal
header = normal
help = yellow
error = bold red
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
excludesfile = /Users/veitheller/.gitignore
whitespace = space-before-tabmtrailing-space
autocrlf = input
editor = /usr/bin/vim
[diff]
tool = vimdiff
algorithm = histogram
[github]
user = hellerve
[merge]
log = true
[push]
default = simple
[user]
name = hellerve
email = veit@veitheller.de
[credential]
helper = osxkeychain
[http]
postBuffer = 1048576000