53 lines
1.1 KiB
Text
53 lines
1.1 KiB
Text
|
[init]
|
||
|
defaultBranch = main
|
||
|
templatedir = ~/.local/share/git/preset
|
||
|
|
||
|
[core]
|
||
|
excludesfile = ~/.local/share/git/ignore
|
||
|
autocrlf = input
|
||
|
# Treat spaces before tabs and all kinds of trailing whitespace as an error.
|
||
|
# [default] trailing-space: looks for spaces at the end of a line
|
||
|
# [default] space-before-tab: looks for spaces before tabs at the beginning of a line
|
||
|
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
|
||
|
|
||
|
[alias]
|
||
|
st = status
|
||
|
pf = push --force-with-lease
|
||
|
ls = log --pretty=oneline -n 20 --graph --abbrev-commit
|
||
|
graph = log --graph --oneline --decorate
|
||
|
contributors = shortlog --summary --numbered
|
||
|
whoami = config user.email
|
||
|
|
||
|
[commit]
|
||
|
template = ~/.local/share/git/message
|
||
|
gpgsign = true
|
||
|
|
||
|
[color]
|
||
|
ui = auto
|
||
|
[apply]
|
||
|
# Detect whitespace errors when applying a patch.
|
||
|
whitespace = fix
|
||
|
|
||
|
[push]
|
||
|
default = current
|
||
|
followTags = true
|
||
|
[pull]
|
||
|
ff = true
|
||
|
[merge]
|
||
|
ff = only
|
||
|
log = true
|
||
|
[fetch]
|
||
|
prune = true
|
||
|
|
||
|
[diff]
|
||
|
renames = copies
|
||
|
[diff "bin"]
|
||
|
textconv = hexdump -v -C
|
||
|
|
||
|
[gpg]
|
||
|
program = gpg2
|
||
|
|
||
|
[include]
|
||
|
path = ~/.config/git/config.localhost
|
||
|
[include]
|
||
|
path = ~/.config/git/prefere-ssh
|