-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig
186 lines (167 loc) · 3.48 KB
/
dot_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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[user]
email = [email protected]
name = weizhongtan
[url "[email protected]:"]
insteadOf = https://github.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol, space-before-tab
excludesfile = ~/.gitignore
# pager = diff-so-fancy | less --tabs=4 -RFX
pager = delta
[interactive]
diffFilter = delta --color-only
[add.interactive]
useBuiltin = false # required for git 2.37.0
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[branch]
autosetuprebase = always
[pager]
branch = 0
[rerere]
enabled = 1
autoupdate = 1
[pull]
rebase = true
[push]
default = simple
[color]
ui = auto
[help]
autocorrect = 50
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[alias]
#############
aliases = config --get-regexp alias
a = add --all
ai = add -i
#############
ap = apply
as = apply --stat
ac = apply --check
#############
ama = am --abort
amr = am --resolved
ams = am --skip
#############
b = branch
ba = branch -a
bd = branch -d
br = branch -r
#############
c = commit
ca = commit -a
cm = commit -m
cam = commit -am
cd = commit --amend
cp = cherry-pick
#############
d = diff
dc = diff --cached
ds = "!git --no-pager diff --stat"
dsc = "!git --no-pager diff --stat --cached"
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
#############
f = fetch
fo = fetch origin
fu = fetch upstream
#############
fp = format-patch
#############
g = grep -p
#############
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
ls = ls-files
lsf = "!git ls-files | grep -i"
#############
m = merge
ma = merge --abort
mc = merge --continue
ms = merge --skip
#############
cl = clone
co = checkout
cob = checkout -b
com = checkout master
#############
pr = prune -v
#############
ps = push
psf = push -f
psu = push -u
pso = push origin
psao = push --all origin
psfo = push -f origin
psuo = push -u origin
psom = push origin master
psuoh = push -u origin HEAD
psuom = push -u origin master
#############
pl = pull
plu = pull -u
plo = pull origin
plp = pull upstream
plom = pull origin master
#############
pb = pull --rebase
pbo = pull --rebase origin
pbp = pull --rebase upstream
pbom = pull --rebase origin master
pbpm = pull --rebase upstream master
#############
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --interactive
rbs = rebase --skip
#############
re = reset
rh = reset HEAD
reh = reset --hard
res = reset --soft
rehh = reset --hard HEAD
resh = reset --soft HEAD
#############
r = remote
ra = remote add
rr = remote rm
rv = remote -v
rm = remote rename
rs = remote show
rao = remote add origin
rso = remote show origin
#############
s = status
sb = status -s -b
#############
st = stash
stp = stash pop
sta = stash apply
stl = stash list
stpm = stash push -m
stsp = stash show -p
std = stash drop