-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitconfig
93 lines (75 loc) · 1.74 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
[user]
name = 張旭
email = [email protected]
username = zx1986
[init]
templatedir = ~/.gittemplate
[core]
excludesfile = ~/.gitignore
editor = nvim
quotepath = false
filemode = true
autocrlf = false
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 227
frag = magenta bold
commit = 227 bold
old = red bold
new = green bold
whitespace = red reverse
[status]
showUntrackedFiles = all
[rerere]
enabled = 1
autoupdate = 1
[push]
default = matching
followTags = true
[pull]
default = matching
followTags = true
rebase = false
ff = only
[merge]
ff = only
conflictstyle = diff3
[diff]
tool = vimdiff
[pager]
branch = false
diff = diff-so-fancy | less --tabs=2 -RFXi
show = diff-so-fancy | less --tabs=2 -RFXi
[alias]
vtags = ! git tag | sort -V
ctags = !.git/hooks/ctags
type = cat-file -t
dump = cat-file -p
history = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
log = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
prune = fetch origin --prune
undo = reset --soft HEAD^
stash = stash save --include-untracked
push-all = !git remote | xargs -L1 git push --all
[diff "sopsdiffer"]
textconv = sops -d
[credential]
helper = osxkeychain
[commit]
template = ~/.git_commit_message
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true