dotfiles/git/gitconfig

60 lines
1.3 KiB
Text

[user]
useConfigOnly = true
[user "changeme"]
name = changeme
email = changeme
signingkey = changeme
[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
pager = less -x1,5
editor = nvim
pager = less -S -x1,5
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
[mergetool]
keepBackup = false
prompt = false
[diff]
tool = vimdiff
[difftool "vimdiff"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[difftool]
prompt = false
[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
[mergetool "nvim"]
cmd = nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
[rerere]
enabled = true
[fetch]
writeCommitGraph = true
[pull]
rebase = true