nivertius-git-rc/.gitconfig
2018-12-21 20:50:51 +01:00

66 lines
1.6 KiB
INI

# put [user] (name, email) into ~/.gitlocal
[include]
path = .gitlocal
[color]
branch = auto
ui = auto
diff = auto
grep = auto
interactive = auto
showBranch = auto
status = auto
[blame]
date = iso-local
[log]
date = iso-local
[core]
excludesFile = ~/.gitignore_global
whitespace = trailing-space space-before-tab
[push]
default = current
[pull]
rebase = true
ff = only
[fetch]
prune = true
[alias]
st = status -s -b
branches = branch -a
tags = tag
stashes = stash list
remotes = remote -v
precommit = diff --diff-algorithm=minimal -w
interactive = add --patch
diffdir = difftool --dir-diff
graph = log --graph --date-order --format=format:'%C(yellow)%h%C(reset) %s %C(cyan)%an%C(reset) %C(green)(%ad)%C(reset) %C(auto)%d%C(reset)'
last = log --walk-reflogs --date=relative --format=format:'%C(yellow)%h%C(reset) %C(white)%gd%C(reset) %gs %C(green)(%ar)%C(reset) %C(auto)%d%C(reset)'
where = log --graph --date-order --format=format:'%C(yellow)%h%C(reset) %s %C(cyan)%an%C(reset) %C(green)(%ad)%C(reset) %C(auto)%d%C(reset)' --max-count=7
outgoing = log --graph --date-order --format=format:'%C(yellow)%h%C(reset) %s %C(cyan)%an%C(reset) %C(green)(%ad)%C(reset) %C(auto)%d%C(reset)' @{u}..HEAD
[diff]
compactionHeuristic = true
indentHeuristic = true
algorithm = histogram
renameLimit = 2000
[difftool]
prompt = false
[gc]
autoDetach = false
[stash]
showPatch = true
[rebase]
autostash = true
autosquash = true
[commit]
verbose = true
[mergetool]
keepBackup = false
[color "diff"]
meta = cyan bold
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse