dotfiles/git/gitconfig

53 lines
990 B
Plaintext

[user]
email = changeme
name = changeme
[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 %Cgreen%<(7,trunc)%aN%Cred%d %Creset%s
[mergetool "nvim"]
cmd = nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
[rerere]
enabled = true
[fetch]
writeCommitGraph = true