-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
101 lines (101 loc) · 2.69 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[user]
name = kang
email = [email protected]
signingkey = 716B162E703DA80C
[color]
ui = auto
[core]
editor = nvim
pager = "{ \
COLUMNS=$(tput cols); \
if [ $COLUMNS -ge 160 ]; then \
sed 's/\t/├──┤/g' | delta --side-by-side -w $COLUMNS; \
else \
sed 's/\t/├──┤/g' | delta; \
fi \
}"
quotepath = false
excludesfile = ~/.gitignore-global
hooksPath = ~/.config/git/hooks
attributesfile = ~/.gitattributes-global
[help]
autocorrect = immediate
[interactive]
diffFilter = delta --color-only
[add.interactive]
useBuiltin = false
[delta]
true-color = always
line-numbers = true
light = true
navigate = true
# unset hunk-label, let navigate skip hunk
hunk-label
hyperlinks = true
# unset hyperlinks-file-link-format, I do not like this feature
hyperlinks-file-link-format
; wrap-max-lines = 10
[commit]
gpgsign = true
verbose = true
[gpg]
program = gpg
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[protocol]
version = 2
[includeIf "gitdir:~/Projects/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/git-email/"]
path = ~/git-email/.gitconfig
[diff]
renames = true
colorMoved = default
algorithm = histogram
submodule = log
[merge]
conflictstyle = zdiff3
[merge "mergiraf"]
name = mergiraf
driver = mergiraf merge --git %O %A %B -s %S -x %X -y %Y -p %P
[push]
autoSetupRemote = true
default = current
[alias]
cleanup = !zsh -c --interactive 'gbda' # use onmyzsh function
history = !git log --graph --decorate --oneline $(git rev-list --walk-reflogs --all) # All history include orphan commit
fixup = "!git log -n 15 --pretty=format:'%h %cs |%aL| %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
open = browse
[gc]
auto = 0
[rebase]
autoSquash = true
autostash = true
[sendemail]
smtpserver = smtp.gmail.com
smtpuser = [email protected]
smtpencryption = tls
smtpserverport = 587
[format]
pretty = fuller
[log]
date = iso
[blame]
date = format:%Y-%m-%d
[rerere]
enabled = true
[url "[email protected]:"]
pushInsteadOf = https://github.com/
[transfer]
fsckObjects = true
[fetch]
fsckObjects = true
[receive]
fsckObjects = true
[status]
submoduleSummary = true
[advice]
detachedHead = false