dotfiles/dot_gitconfig.tmpl

55 lines
1.3 KiB
Cheetah

[core]
editor = nvim
quotepath = false
pager = delta
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
[credential]
helper = cache --timeout=3600
[push]
default = simple
[github]
user = {{ onepasswordRead "op://Private/github.com/username" }}
token = {{ onepasswordRead "op://Private/github.com/password" }}
[diff]
tool = meld
[difftool]
prompt = false
[color]
ui = auto
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
rebase = false
[user]
name = {{ .gitconfig.work.name }}
email = {{ .gitconfig.work.email }}
[includeIf "gitdir:~/projects/{{- .gitconfig.home.config }}/"]
path = ~/.gitconfig-{{- .gitconfig.home.config }}
[includeIf "gitdir:~/projects/{{- .gitconfig.work.config }}/"]
path = ~/.gitconfig-{{- .gitconfig.work.config }}
[init]
defaultBranch = main
templatedir = /home/kellya/.git-templates
[delta]
plus-style = "syntax #012800"
minus-style = "syntax #340001"
syntax-theme = Monokai Extended
[interactive]
diffFilter = delta --color-only
[help]
autocorrect = 20
[merge]
conflictstyle = zdiff3