dotfiles/git/gitconfig

65 lines
1.4 KiB
Text

[user]
useConfigOnly = true
[user "changeme"]
name = changeme
email = changeme
signingkey = changeme
[user "private"]
name = Michael Mandl
email = mandlm@molez.net
signingkey = 4AA25D647AA54CC7
[user "swp"]
name = Michael Mandl
email = mandl@vi-bim.de
signingkey = 4E60F44227F611B4
[alias]
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; git config user.signingkey \"$(git config user.$1.signingkey)\"; :"
[commit]
gpgsign = true
[push]
default = simple
[core]
editor = vim
editor = nvim
pager = less -x1,5 -F -M -R -J
whitespace = cr-at-eol
excludesfile = ~/.gitignore
[rebase]
autostash = true
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = 64
whitespace = red reverse
[merge]
tool = fugitive
[mergetool]
keepBackup = false
prompt = false
[mergetool "fugitive"]
cmd = nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
[gitflow]
multi-hotfix = true
[gitflow "branch"]
master = master
develop = develop
[gitflow "prefix"]
feature = feature/
bugfix = bugfix/
release = release/
hotfix = hotfix/
support = support/
versiontag =
[log]
date = relative
[format]
pretty = format:%C(yellow)%h %Cblue%>(12)%ad %C(red)%G? %Cgreen%<(7,trunc)%aN%Cred%d %Creset%s
[rerere]
enabled = true
[fetch]
writeCommitGraph = true
[pull]
rebase = true
[init]
defaultBranch = main