-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig-phd
346 lines (317 loc) · 16.5 KB
/
.gitconfig-phd
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
[alias]
s = status
st = status
stuno = status -uno
co = checkout
cob = checkout -b
com = checkout master
coma = checkout main
co-- = checkout --
cp = cherry-pick
cpc = cherry-pick --continue
cpa = cherry-pick --abort
log1 = log --oneline
reset1 = reset HEAD~
resethard = reset --hard
resethard1 = reset --hard HEAD~
resethardom = reset --hard origin/master
resethardoma = reset --hard origin/main
r = reset
r1 = reset HEAD~
rh = reset --hard
rh1 = reset --hard HEAD~
rhm = reset --hard master
rhma = reset --hard main
rhom = reset --hard origin/master
rhoma = reset --hard origin/main
rhum = reset --hard upstream/master
rhuma = reset --hard upstream/main
rmerge = reset --merge
ru = remote update
f = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { echo Fetching... && git fetch $@ && git status; }; _"
fa = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git f --all"
ft = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git f --tags"
fat = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git f --all --tags"
pullr = pull --rebase
p = push
push-a = push --all
pusha = push --all
pa = push --all
push-f = push -f
pushf = push -f
pf = push -f
push-t = push --tags
pusht = push --tags
pt = push --tags
push-u = push --set-upstream
pushu = push --set-upstream
pu = push --set-upstream
paf = push --all -f
pat = push --all --tags
pau = push --all --set-upstream
pft = push -f --tags
pfu = push -f --set-upstream
ptu = push --tags --set-upstream
paft = push --all -f --tags
pafu = push --all -f --set-upstream
pftu = push -f --tags --set-upstream
paftu = push --all -f --tags --set-upstream
b = branch
branch-delete = git push --delete
r = rebase
ri = rebase -i
ri1 = rebase -i HEAD~1
ri2 = rebase -i HEAD~2
ri3 = rebase -i HEAD~3
ri4 = rebase -i HEAD~4
ri5 = rebase -i HEAD~5
ri6 = rebase -i HEAD~6
ri7 = rebase -i HEAD~7
ri8 = rebase -i HEAD~8
ri9 = rebase -i HEAD~9
ri10 = rebase -i HEAD~10
ri11 = rebase -i HEAD~11
ri12 = rebase -i HEAD~12
ri13 = rebase -i HEAD~13
ri14 = rebase -i HEAD~14
ri15 = rebase -i HEAD~15
ri16 = rebase -i HEAD~16
ri17 = rebase -i HEAD~17
ri18 = rebase -i HEAD~18
ri19 = rebase -i HEAD~19
ri20 = rebase -i HEAD~20
ri25 = rebase -i HEAD~25
ri30 = rebase -i HEAD~30
ri35 = rebase -i HEAD~35
ri40 = rebase -i HEAD~40
ri45 = rebase -i HEAD~45
ri50 = rebase -i HEAD~50
ri60 = rebase -i HEAD~60
ri70 = rebase -i HEAD~70
ri80 = rebase -i HEAD~80
ri90 = rebase -i HEAD~90
ri100 = rebase -i HEAD~100
ri150 = rebase -i HEAD~150
ri200 = rebase -i HEAD~200
ri250 = rebase -i HEAD~250
ri300 = rebase -i HEAD~300
ri350 = rebase -i HEAD~350
ri400 = rebase -i HEAD~400
ri450 = rebase -i HEAD~450
ri500 = rebase -i HEAD~500
rc = rebase --continue
ra = rebase --abort
rdate = rebase --committer-date-is-author-date
rdateinit = rebase --committer-date-is-author-date init
c = commit
ca = commit -a
cam = commit --amend
caam = commit -a --amend
camd = commit --amend --date
camdn = commit --amend --date=now
caamd = commit -a --amend --date
caamdn = commit -a --amend --date=now
cd = commit --amend --date=now
cu = commit -a --amend --date=now
camdc = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { export GIT_COMMITTER_DATE=\"$1\"; shift; git cam \"$GIT_COMMITTER_DATE\" $@; }; _"
camdb = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { export GIT_COMMITTER_DATE=\"$1\"; shift; git camd \"$GIT_COMMITTER_DATE\" $@; }; _"
caamdc = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { export GIT_COMMITTER_DATE=\"$1\"; shift; git caam \"$GIT_COMMITTER_DATE\" $@; }; _"
caamdb = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { export GIT_COMMITTER_DATE=\"$1\"; shift; git caamd \"$GIT_COMMITTER_DATE\" $@; }; _"
camdcn = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { git camdc \"$(date +'%Y-%m-%d %H:%M:%S')\" $@; }; _"
camdbn = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { git camdb \"$(date +'%Y-%m-%d %H:%M:%S')\" $@; }; _"
caamdcn = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { git caamdc \"$(date +'%Y-%m-%d %H:%M:%S')\" $@; }; _"
caamdbn = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { git caamdb \"$(date +'%Y-%m-%d %H:%M:%S')\" $@; }; _"
d = diff
dn = diff --name-only
dw = diff --color-words=.
dm = diff --color-moved=plain
dc = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { git diff --check $@ | cut -d: -f1 | sort -u; }; _"
ds = d --staged
d2 = d HEAD~1..HEAD
d3 = d HEAD~2..HEAD~1
d4 = d HEAD~3..HEAD~2
d5 = d HEAD~4..HEAD~3
d6 = d HEAD~5..HEAD~4
d7 = d HEAD~6..HEAD~5
d8 = d HEAD~7..HEAD~6
d9 = d HEAD~8..HEAD~7
d2- = d HEAD~1
d3- = d HEAD~2
d4- = d HEAD~3
d5- = d HEAD~4
d6- = d HEAD~5
d7- = d HEAD~6
d8- = d HEAD~7
d9- = d HEAD~8
dns = dn --staged
dn2 = dn HEAD~1..HEAD
dn3 = dn HEAD~2..HEAD~1
dn4 = dn HEAD~3..HEAD~2
dn5 = dn HEAD~4..HEAD~3
dn6 = dn HEAD~5..HEAD~4
dn7 = dn HEAD~6..HEAD~5
dn8 = dn HEAD~7..HEAD~6
dn9 = dn HEAD~8..HEAD~7
dn2- = dn HEAD~1
dn3- = dn HEAD~2
dn4- = dn HEAD~3
dn5- = dn HEAD~4
dn6- = dn HEAD~5
dn7- = dn HEAD~6
dn8- = dn HEAD~7
dn9- = dn HEAD~8
dws = dw --staged
dw2 = dw HEAD~1..HEAD
dw3 = dw HEAD~2..HEAD~1
dw4 = dw HEAD~3..HEAD~2
dw5 = dw HEAD~4..HEAD~3
dw6 = dw HEAD~5..HEAD~4
dw7 = dw HEAD~6..HEAD~5
dw8 = dw HEAD~7..HEAD~6
dw9 = dw HEAD~8..HEAD~7
dw2- = dw HEAD~1
dw3- = dw HEAD~2
dw4- = dw HEAD~3
dw5- = dw HEAD~4
dw6- = dw HEAD~5
dw7- = dw HEAD~6
dw8- = dw HEAD~7
dw9- = dw HEAD~8
dms = dm --staged
dm2 = dm HEAD~1..HEAD
dm3 = dm HEAD~2..HEAD~1
dm4 = dm HEAD~3..HEAD~2
dm5 = dm HEAD~4..HEAD~3
dm6 = dm HEAD~5..HEAD~4
dm7 = dm HEAD~6..HEAD~5
dm8 = dm HEAD~7..HEAD~6
dm9 = dm HEAD~8..HEAD~7
dm2- = dm HEAD~1
dm3- = dm HEAD~2
dm4- = dm HEAD~3
dm5- = dm HEAD~4
dm6- = dm HEAD~5
dm7- = dm HEAD~6
dm8- = dm HEAD~7
dm9- = dm HEAD~8
dcs = dc --staged
dc2 = dc HEAD~1..HEAD
dc3 = dc HEAD~2..HEAD~1
dc4 = dc HEAD~3..HEAD~2
dc5 = dc HEAD~4..HEAD~3
dc6 = dc HEAD~5..HEAD~4
dc7 = dc HEAD~6..HEAD~5
dc8 = dc HEAD~7..HEAD~6
dc9 = dc HEAD~8..HEAD~7
dc2- = dc HEAD~1
dc3- = dc HEAD~2
dc4- = dc HEAD~3
dc5- = dc HEAD~4
dc6- = dc HEAD~5
dc7- = dc HEAD~6
dc8- = dc HEAD~7
dc9- = dc HEAD~8
l-work = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git diff --name-only | xargs -r -L1 realpath --relative-to=$_DIR"
l-staged = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git diff --name-only --cached | xargs -r -L1 realpath --relative-to=$_DIR"
l-conflicts = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git diff --name-only --diff-filter=U | xargs -r -L1 realpath --relative-to=$_DIR"
lg-work = diff --name-only
lg-staged = diff --name-only --cached
l-conflicts = diff --name-only --diff-filter=U
l-all = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git ls && git l"
lg-all = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git lgs && git lg"
l-commit = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { git diff-tree -r --no-commit-id --name-only $1 | xargs -r -L1 realpath --relative-to=$_DIR; }; _"
lg-commit = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { git diff-tree -r --no-commit-id --name-only $1 ; }; _"
l = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { [ -z $1 ] && git l-work || git l-commit $1; }; _"
lg = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { [ -z $1 ] && git lg-work || git lg-commit $1; }; _"
ls = l-staged
la = l-all
lc = l-conflicts
lgs = lg-staged
lga = lg-all
lgc = lg-conflicts
l-last = l-commit HEAD
l-last2 = l-commit HEAD~1
l-last3 = l-commit HEAD~2
l-last4 = l-commit HEAD~3
l-last5 = l-commit HEAD~4
l-last6 = l-commit HEAD~5
l-last7 = l-commit HEAD~6
l-last8 = l-commit HEAD~7
l-last9 = l-commit HEAD~8
ll = l-last
ll2 = l-last2
ll3 = l-last3
ll4 = l-last4
ll5 = l-last5
ll6 = l-last6
ll7 = l-last7
ll8 = l-last8
ll9 = l-last9
lg-last = lg-commit HEAD
lg-last2 = lg-commit HEAD~1
lg-last3 = lg-commit HEAD~2
lg-last4 = lg-commit HEAD~3
lg-last5 = lg-commit HEAD~4
lg-last6 = lg-commit HEAD~5
lg-last7 = lg-commit HEAD~6
lg-last8 = lg-commit HEAD~7
lg-last9 = lg-commit HEAD~8
lgl = lg-last
lgl2 = lg-last2
lgl3 = lg-last3
lgl4 = lg-last4
lgl5 = lg-last5
lgl6 = lg-last6
lgl7 = lg-last7
lgl8 = lg-last8
lgl9 = lg-last9
action = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; bash -i -c '__git_ps1 %s\\|CLEAN | cut -d\\| -f2 | sed -E \"s,[^A-Za-z-],.,g\" | cut -d. -f1'"
what = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; bash -i -c '__git_ps1 %s\\|CLEAN | cut -d\\| -f2 | sed -E \"s,[^A-Za-z-],.,g\" | cut -d. -f1'"
w = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; bash -i -c '__git_ps1 %s\\|CLEAN | cut -d\\| -f2 | sed -E \"s,[^A-Za-z-],.,g\" | cut -d. -f1'"
abort = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; git abort-$(git action)"
abort-CLEAN = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo 'Nothing to abort.'"
abort-CHERRY-PICKING = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git cherry-pick --abort && git cherry-pick --abort"
abort-REVERTING = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git revert --abort && git revert --abort"
abort-REBASE-i = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git rebase --abort && git rebase --abort"
abort-REBASE-m = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git rebase --abort && git rebase --abort"
abort-REBASE = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git rebase --abort && git rebase --abort"
abort-AM = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git rebase --abort && git rebase --abort"
abort-AMREBASE = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git rebase --abort && git rebase --abort"
abort-MERGING = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git merge --abort && git merge --abort"
abort-BISECTING = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; echo git bisect --abort && git bisect --abort"
conf = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; nano .git/config"
init2 = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { cd \"${_DIR}\"; [ -d '.git' ] && echo 'Already initialized!' && exit 1; git init $@; git commit --allow-empty -m 'init' ; git branch 'init'; }; _"
commit-init2 = "!export _DIR=${_DIR:-${GIT_PREFIX:-.}}; _() { cd \"${_DIR}\"; [ -n \"$(git rev-list -n1 --all)\" ] && echo 'Already initialized!' && exit 1; git commit --allow-empty -m 'init' $@; git branch 'init'; }; _"
find-repos = "!bash -i -c '(trap \"echo && builtin exit 0\" SIGINT; shopt -s nullglob; G=\"/*\"; while true; do find . -path \".$G\" -not -path \"*/.*/*\" -exec false {} '+' -quit && break; echo -n .$G/.git | xargs -n1 -r dirname; G=\"$G/*\"; done)'"
[init]
defaultBranch = master
[core]
editor = nano
[push]
default = simple
[pull]
ff = only
[gui]
fontui = -family \"Liberation Sans\" -size 10 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family \"Liberation Mono\" -size 9 -weight normal -slant roman -underline 0 -overstrike 0
warndetachedcommit = true
spellingdictionary = en
tabsize = 4
[guitool "gitk"]
cmd = gitk
noconsole = yes
[guitool "gitk --all"]
cmd = gitk --all
noconsole = yes
[cola]
spellcheck = false
[credential "https://github.com"]
helper = !gh auth git-credential
[url "[email protected]:"]
insteadOf = kde:
[url "[email protected]:"]
pushInsteadOf = kde:
[url "https://invent.kde.org/"]
insteadOf = kde:
[url "ssh://[email protected]/"]
pushInsteadOf = kde: