nivertius-git-rc/.gitconfig
2024-09-04 12:06:32 +02:00

82 lines
1.9 KiB
INI

# put [user] (name, email) into ~/.gitlocal
[color]
branch = auto
ui = auto
diff = auto
grep = auto
interactive = auto
showBranch = auto
status = auto
[blame]
date = iso-local
[log]
date = iso-local
[init]
defaultBranch = main
[core]
excludesFile = ~/.gitignore_global
whitespace = trailing-space space-before-tab
eol = lf
autocrlf = false
[push]
default = current
[pull]
rebase = true
ff = only
[fetch]
prune = true
[advice]
detachedHead = false
[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(magenta)(%cd)%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(magenta)(%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(magenta)(%cd)%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(magenta)(%cd)%C(reset) %C(auto)%d%C(reset)' @{u}..HEAD
[diff]
compactionHeuristic = true
indentHeuristic = true
algorithm = histogram
renameLimit = 2000
mnemonicPrefix = true
colorMoved = plain
[difftool]
prompt = false
[gc]
autoDetach = false
[stash]
showPatch = true
[rebase]
autostash = true
autosquash = true
abbreviateCommands = true
[commit]
verbose = true
[merge]
ff = only
[mergetool]
keepBackup = false
[color "diff"]
meta = cyan bold
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[include]
path = .gitlocal