dotfiles/dot_gitconfig.tmpl

119 lines
1.7 KiB
Cheetah

[user]
name = Sebastian Schulze
email = {{ .git.email }}
signingkey = {{ .git.signingkey }}
[core]
excludesfile = ~/.gitignore
editor = em -nw
hooksPath = ~/.config/git/hooks
pager = delta
[commit]
gpgsign = true
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
light = true
side-by-side = true
features = unobtrusive-line-numbers decorations
whitespace-error-style = 22 reverse
hyperlinks = true
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
hunk-header-decoration-style = yellow box
[merge]
conflictstyle = zdiff3
[diff]
colorMoved = default
[alias]
log= 'log' '--decorate' '--pretty=full'
me = $GIT_AUTHOR_NAME
st = 'status'
rb = 'rebase'
f = 'fetch'
pl = 'pull'
ps = 'push'
co = 'checkout'
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[difftool]
prompt = false
[push]
default = current
[branch]
autosetuprebase = always
[rebase]
autoStash = true
[tig]
line-graphics = utf-8
reference-format = (branch) <tag>
mouse = yes
[credential]
helper = !git-credential-gopass $@
[pull]
rebase = true
[github]
user = bascht
[sendemail]
smtpserver = /usr/bin/msmtp
smtpserveroption = -a
smtpserveroption = bascht
[rerere]
enabled = true
[init]
defaultBranch = main
{{ if (index .git "instead") -}}
{{ range .git.instead -}}
[url "{{.url}}"]
insteadOf = {{.https}}
insteadOf = {{.http}}
{{ end -}}
{{ range .git.gitlab -}}
[gitlab "{{.url}}"]
user = "{{.user}}"
{{ end -}}
{{ end -}}