-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
282 lines (282 loc) · 5.78 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
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
[user]
name = universato
username = universato
email = universato@gmail.com
# リポジトリごとに user.name や user.email の設定を強制する
# https://qiita.com/uasi/items/a340bb487ec07caac799
useConfigOnly = true
[color]
ui = true
[core]
excludesfile = ~/.gitignore
quotepath = false
autocrlf = false
[init]
defaultBranch = main
[alias]
a = add
aa = add .
ac = add .
# ac = add -c
ad = add
adc = add .
adc = add -c
addc = add .
addi = add -i
addp = add -p
adi = add -i
ai = add -i
am = commit --amend
ame = commit --amend
amen = commit --amend
amend = commit --amend
ammend = commit --amend
amnd = commit --amend
b = branch
bd = branch -d
bl = blame
br = branch
bra = branch
brad = branch -d
brd = branch -d
c = commit -m
cam = commit --amend
cap = cat-file -p
cb = chekout -b
cblo = cat-file blob
ccm = cat-file commit
ce = commit --alow-empty
cf = config
cfg = config --global
chp = cherry-pick
# chp = cat-file -p
ci = commit
ck = checkout
cl = clone
cm = commit
cma = commit --amend
cmae = commit --allow-empty
cmaem = commit --allow-empty -m
cmam = commit --amend
cmamne = commit --amend --no-edit
cman = commit --amend --no-edit
cmane = commit --amend --no-edit
cme = commit --alow-empty
cmem = commit --alow-empty -m
cmm = commit -m
co = checkout
cob = checkout -b
com = checkout main
coma = checkout main
comai = checkout main
comas = checkout master
comi = checkout main
comm = commit
commi = commit
commti = commit
comn = checkout main
coms = checkout ms
cp = cherry-pick
d = diff
d1 = diff HEAD~
d2 = diff HEAD~2
d3 = diff HEAD~3
d4 = diff HEAD~4
d5 = diff HEAD~5
dc = diff --cached
di = diff
dif = diff
difc = diff --cached
diffc = diff --cached
diffm = diff main
diffmain = diff main
diffs = diff --staged
diffstag = diff --staged
diffstage = diff --staged
diffstat = diff --stat
diffstst = diff --stat --staged
difm = diff main
dim = diff main
dm = diff main
dma = diff main
dmain = diff main
dmast = diff master
dmaste = diff master
dmaster = diff master
dmi = diff main
dmn = diff main
dms = diff master
dn = diff --name-only
dnm = diff --name-only main
dno = diff --name-only
dnom = diff --name-only main
ds = diff --staged
ds = diff --staged
dsg = diff --staged
dst = diff --stat
dsta = diff --staged
dstage = diff --staged
dstaged = diff --staged
dstat = diff --stat
dstst = diff --stat --staged
email = config user.email
f = fetch
fe = fetch
fech = fetch
fep = fetch --prune
fepru = fetch --prune
fet = fetch
fetch = fetch
force = push --force-with-lease
fp = push -f
fpush = push --force-with-lease
fwl = push --force-with-lease
g = log --graph
go = log --graph --oneline
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
in = add
ind = add
index = add
l = log
lname = config user.name
lg = log --graph
lgo = log --graph --oneline
lg1 = log --graph --oneline
lo = log
lp = log -p
localname = config user.name
logs = log --stat
logst = log --stat
logstat = log --stat
ls = log --stat
l1 = log --oneline
l1g = log --graph --oneline
m = merge
me = merge
mer = merge
mg = merge
mr = merge
n = checout -b
# name = config user.name
name = diff --name-only
nameonly = diff --name-only
name-only = diff --name-only
new = checout -b
no = diff --name-only
nt = tag -n
ntag = tag -n
ol = "!f() { git log --oneline $1; }; f"
ol1 = log --oneline -1
ol2 = log --oneline -2
ol3 = log --oneline -3
ol4 = log --oneline -4
ol5 = log --oneline -5
ol6 = log --oneline -6
ol7 = log --oneline -7
ol8 = log --oneline -8
ol9 = log --oneline -9
ol10 = log --oneline -10
oneline = log --oneline
pfom = push -f origin main
ph = push heroku
phm = push heroku main
phms = push heroku master
pl = pull
plo = pull origin
plom = pull origin main
plori = pull origin
plorim = pull origin main
plorimain = pull origin main
pll = pull
poh = pull origin HEAD
pom = pull origin main
ps = push
psf = push -f
psfwl = push --force-with-lease
psfwlo = push --force-with-lease origin
psfo = push -f origin
psfom = push -f origin main
psh = push
psho = push origin
psho = push origin main
pul = pull
pullo = pull origin
pullom = pull origin main
pullorim = pull origin main
psoh = push origin HEAD
pus = push
pusf = push -f
pushf = push -f
pushfo = push -f origin
pushfom = push -f origin main
pushfori = push -f origin
ra = remote add
rao = remote add origin
re = rebase
rei = rebase -i
reb = rebase
reba = rebase
rebai = rebase -i
rebi = rebase -i
reh = reset --hard
remo = remote
remot = remote
res = reset --soft
reseth = reset --hard
resethd = reset --hard
resethard = reset --hard
resetm = reset --mixed
resetmix = reset --mixed
resetmixed = reset --mixed
resets = reset --soft
resetsoft = reset --soft
rh = reset --hard
ri = rebase -i
rm = rm
rmt = remote
rp = remote prune
rpo = remote prune origin
rs = reset --soft
s = status
sc = switch -c
sd = diff --stat
sh = show
sm = switch main
sp = stash pop
ss = status -s
st = status
sts = status -s
sta = status
stat = status
statd = diff --stat
statu = status
sw = switch
swc = switch -c
swm = switch main
swi = switch
swich = switch # for typo
swim = switch main
swima = switch main
swimai = switch main
swimain = switch main
swimi = switch main
swimin = switch main
swit = switch
switch = switch
t = tag
tn = tag -n
tree = log --graph --pretty=format:'%x09%C(auto) %h %Cgreen %ar %Creset%x09by"%C(cyan ul)%an%Creset" %x09%C(auto)%s %d'
un = restore --staged
uns = restore --staged
unst = restore --staged
unstage = restore --staged
us = restore --staged
username = config user.name
# 1l = log --oneline # bad config
[url "https://"]
insteadOf = git://
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true