2024-09-28 23:59:32 +00:00
|
|
|
# This is Git's per-user configuration file.
|
2024-11-25 02:49:26 +00:00
|
|
|
# It is recommended to edit this using chezmoi:
|
|
|
|
# cz edit ~/.gitconfig
|
|
|
|
|
|
|
|
[include]
|
|
|
|
path = .config/sz.env/lib/delta.themes.gitconfig
|
|
|
|
|
2024-09-28 23:59:32 +00:00
|
|
|
[user]
|
2024-11-25 02:49:26 +00:00
|
|
|
name = {{ .gitName }}
|
|
|
|
email = {{ .gitEmail }}
|
|
|
|
|
2024-09-28 23:59:32 +00:00
|
|
|
[credential]
|
|
|
|
helper = cache --timeout 21600
|
|
|
|
helper = oauth
|
|
|
|
# helper = oauth -device
|
|
|
|
[credential "https://code.lksz.me"]
|
|
|
|
oauthClientId = a4792ccc-144e-407e-86c9-5e7d8d9c3269
|
|
|
|
oauthAuthURL = /login/oauth/authorize
|
|
|
|
oauthTokenURL = /login/oauth/access_token
|
|
|
|
# oauthDeviceAuthURL = /login/oauth/authorize
|
|
|
|
# oauthDeviceAuthURL = /login/oauth/authorize_device
|
|
|
|
# oauthScopes = read_repository
|
2024-11-25 02:49:26 +00:00
|
|
|
[core]
|
|
|
|
editor = nvim
|
|
|
|
pager = delta
|
|
|
|
|
|
|
|
[init]
|
|
|
|
defaultBranch = main
|
|
|
|
|
|
|
|
[core]
|
|
|
|
pager = delta
|
|
|
|
|
|
|
|
[interactive]
|
|
|
|
diffFilter = delta --color-only
|
|
|
|
|
|
|
|
[delta]
|
|
|
|
features = colibri
|
|
|
|
navigate = true # use n and N to move between diff sections
|
|
|
|
line-numbers = true
|
|
|
|
side-by-side = true
|
|
|
|
|
2024-09-28 23:59:32 +00:00
|
|
|
[diff]
|
2024-11-25 02:49:26 +00:00
|
|
|
tool = nvimdiff
|
|
|
|
[difftool]
|
|
|
|
prompt = false
|
|
|
|
[difftool "nvimdiff"]
|
|
|
|
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
|
|
|
|
|
|
|
|
[merge]
|
|
|
|
tool = nvimdiff
|
|
|
|
conflictstyle = zdiff3
|
|
|
|
[mergetool]
|
|
|
|
prompt = true
|
|
|
|
[mergetool "nvimdiff"]
|
|
|
|
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\" \"$MERGED\" -c 'wincmd w' -c 'wincmd J'"
|
|
|
|
|