/
.gitconfig
42 lines (42 loc) · 1.27 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# vim: ft=gitconfig:
[user]
name = Zhuoyun Wei
useConfigOnly = true
[core]
editor = nvim
quotePath = false
pager = diff-so-fancy | less --tabs=4 -RFX
[init]
defaultBranch = master
[commit]
gpgSign = true
[fetch]
prune = true
[pull]
ff = only
[merge]
tool = nvimdiff
conflictstyle = diff3
[mergetool]
keepBackup = false
[mergetool "nvimdiff"]
cmd = nvim -d $LOCAL $BASE $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[alias]
st = status
l = log --graph --abbrev-commit --decorate --date=iso --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%ad%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an <%ae>%C(reset)' --topo-order
lg = log --graph --abbrev-commit --decorate --date=iso --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%ad%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an <%ae>%C(reset)' --all --topo-order
[color]
ui = auto
[interactive]
diffFilter = diff-so-fancy --patch
[diff-so-fancy]
stripLeadingSymbols = false
[diff "json"]
textconv = python -m json.tool
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[include]
path = .gitconfig.local