64 lines
1.7 KiB
Plaintext
64 lines
1.7 KiB
Plaintext
[user]
|
|
email = astroshot@outlook.com
|
|
name = Shockwave
|
|
[commit]
|
|
template = ~/.config/git/commit-template.txt
|
|
[pull]
|
|
rebase = true
|
|
|
|
# my vim is a soft link of nvim
|
|
[core]
|
|
editor = nvim
|
|
# pager = delta
|
|
[diff]
|
|
tool = nvimdiff
|
|
[difftool "nvimdiff"]
|
|
cmd = nvim -d $LOCAL $REMOTE $MERGED -c "$wincmd w" -c "wincmd J"
|
|
|
|
# merge UI in vim will be like:
|
|
# +-------------------------------------+
|
|
# | | | |
|
|
# | LOCAL | BASE | REMOTE |
|
|
# | | | |
|
|
# +-------------------------------------+
|
|
# | |
|
|
# | |
|
|
# | MERGED |
|
|
# | |
|
|
# | |
|
|
# +-------------------------------------+
|
|
#
|
|
# Use `diffget(diffg)` to choose LO(CAL), BA(SE), RE(MOTE).
|
|
# If multi choice is needed, try to edit MERGED manually.
|
|
# After solving conflicts, `git commit` and `git rebase/merge --continue`
|
|
# Then remove *.orig files: `find . -name "*.orig" | xargs rm`
|
|
#
|
|
|
|
[merge]
|
|
tool = nvimdiff
|
|
[mergetool]
|
|
cmd = nvim -d $LOCAL $BASE $REMOTE $MERGED -c "$wincmd w" -c "$wincmd J"
|
|
keepBackup = false
|
|
|
|
# Don't use pager when type `git branch`
|
|
[pager]
|
|
branch = false
|
|
|
|
# [interactive]
|
|
# diffFilter = delta --color-only
|
|
|
|
# [delta]
|
|
# features = side-by-side line-numbers decorations
|
|
# whitespace-error-style = 22 reverse
|
|
# plus-style = "syntax #012800"
|
|
# minus-style = "syntax #340001"
|
|
# syntax-theme = Monokai Extended
|
|
# navigate = true
|
|
# linenumbers = true
|
|
# [delta "decorations"]
|
|
# commit-decoration-style = bold yellow box ul
|
|
# file-style = bold yellow ul
|
|
# file-decoration-style = none
|
|
[init]
|
|
defaultBranch = master
|