-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
311 lines (270 loc) · 7.56 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
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
[includeIf "gitdir:~/Projects/Personal/"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/Development/Projects/Personal/"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/Projects/Personal/Linux/"]
path = ~/.gitconfig-linux
[includeIf "gitdir:~/Development/Projects/Personal/Linux/"]
path = ~/.gitconfig-linux
[includeIf "gitdir:~/Projects/Work/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/Development/Projects/Work/"]
path = ~/.gitconfig-work
[alias]
a = add
au = add -u .
ap = add -p
ame = amend
ami = am -i
b = branch
bl = blame
br = branch -v
bra = branch -a
brd = branch-date
brc = branch --contains
brm = branch --merged
brnm = branch --no-merged
b4 = !sh -c 'b4 "$@"' -
clo = clone
clor = clone --recursive
cl = clean
co = checkout
clf = clean --force
conflicts = diff --name-only --diff-filter=U
sh = show
shm = !sh -c 'git show $(git origin)..HEAD'
sb = show-branch
ls = ls-files
lo = log
lf = log --follow
st = status
stb = status -sb
s = status -s
sn = status -s -b --untracked=no
co = checkout
ci = commit
cep = cherry-pick
df = diff
dc = diff --cached
ds = diff --stat
dfs = diff --staged
dfn = diff --name-only
dfm = !sh -c 'git diff $(git name-rev --name-only $(git origin))'
df1 = diff HEAD~
df2 = diff HEAD~~
df3 = diff HEAD~~~
df4 = diff HEAD~~~~
df5 = diff HEAD~~~~~
wdc = diff --color-words --cache
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --interactive
rbik = rebase --interactive --keep-base
rbm = !sh -c 'git rebase --interactive $(git origin) "$@"' -
rbr = rebase --root
rbs = rebase --skip
me = merge
rs = remote show
remotes = remote -v
fe = fetch
fea = fetch --all
pu = pull
pur = pull --rebase
pup = pull --prune
purp = pull --prune --rebase
puo = !sh -c 'git pull upstream $(git origin)'
pus = !sh -c 'git submodule foreach git pull origin $(git origin)'
purs = pull --recurse-submodules
pull-all = pull --recurse-submodules -r
pt = push --tags
t = tag
tags = tag -l
w = whatchanged
wo = whatchanged --oneline
wn = whatchanged --name-only --oneline
wno = whatchanged --pretty='format:' --name-only
sts = status -s
rl = reflog
ref = reflog
r = reset
rh = reset --hard
rr = restore
rt = remote
se = send-email
sm = submodule
sts = stash
stsp = stash pop
stsd = stash drop
stash-all = stash save --include-untracked
sms = submodule status
smi = submodule init
smu = submodule update
smf = submodule foreach
rup = remote update
rpr = remote prune
cia = commit -a
com = !sh -c 'git checkout $(git origin)'
cob = checkout -b
cod = checkout develop
sw = switch
swc = switch -c
detach = checkout HEAD^0
info = config --list
summary = log --oneline
rank = shortlog -sn --no-merges
tree = log --graph --oneline --decorate
ll = log --graph --pretty='format:%h | %an | %s'
ls = ls-files
los = log --graph --oneline --abbrev-commit
lok = log --oneline --abbrev-commit --pretty='%h (\"%s\")'
lom = !sh -c 'git log $(git origin)..HEAD "$@"' -
lokm = !sh -c 'git log --oneline --abbrev-commit --pretty=\"%h (\\\"%s\\\")\" $(git origin)..HEAD "$@"' -
llog = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=iso
fp = format-patch
fpm = !sh -c 'git format-patch $(git origin)..HEAD "$@"' -
po = push origin
pu = push -u origin HEAD
pf = push --force-with-lease
pom = !sh -c 'git push origin $(git origin) "$@"' -
changelog = log --pretty=format:'%Cgreen%d %Creset%s' --date=iso
pob = !sh -c 'git push origin $(git branch -l 2> /dev/null | sed -e \"/^[^*]/d\" -e \"s/* \\(.*\\)/\\1/\") "$@"' -
purb = !sh -c 'git pull origin $(git branch -l 2> /dev/null | sed -e \"/^[^*]/d\" -e \"s/* \\(.*\\)/\\1/\") --rebase "$@"' -
amend = commit --amend --reuse-message=HEAD
amende = commit --amend
last = log --oneline -10
review = log --stat=160,180 -p -w --patience --reverse -M -C -C -c
undo = reset --soft HEAD^
serve = !git daemon --base-path=. --export-all --reuseaddr --informative-errors --verbose
hub = !git daemon --base-path=. --export-all --enable=receive-pack --reuseaddr --informative-errors --verbose
this = !git init && git add . && git commit -m \"Initial commit.\"
empty = !git init && git commit --allow-empty -m \"Initial commit.\"
r = !git ls-files -z --deleted | xargs -0 git rm
wd = !git diff | delta --features='default no-line-numbers' --true-color='always' --color-only | less -FRSX
update-author = !sh -c 'git rebase --onto $1 --exec \"git commit --amend --author=$2\" $1' --
origin = !git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'
branch-date = !git for-each-ref --sort='-committerdate:iso8601' --format='%(committerdate:iso8601)|%(committerdate:relative)|%(committername)|%(refname:short)' refs/heads/ | column -s '|' -t
tag-date = !git for-each-ref --sort='-taggerdate' --format='%(taggerdate:iso8601)|%(taggerdate:relative)|%(taggername)|%(tag)|%(subject)' refs/tags/ | column -s '|' -t
shazam = !sh -c 'b4 shazam "$@"' -
root = !git rev-parse --show-toplevel
reref = rerere forget
rerefc = !sh -c 'rm -Rf "$(git root)/.git/rr-cache"'
mt = mergetool
wa = worktree add
wl = worktree list --verbose
wr = worktree remove
wp = worktree prune --verbose
[delta]
tabs = 0
keep-plus-minus-markers = true
inspect-raw-lines = false
features = default
true-color = always
[delta "default"]
dark = true
syntax-theme = zenburn
line-numbers = true
[delta "no-line-numbers"]
line-numbers = false
[color]
branch = auto
diff = auto
status = auto
interactive = auto
ui = true
pager = true
[pack]
threads = 0
useBitmapBoundaryTraversal = true
allowPackReuse = multi
[rename]
limit = 0
[checkout]
workers = 0
[commit]
verbose = true
[merge]
log = true
renamelimit = 2048
tool = meld
conflictstyle = diff3
[mergetool]
prompt = false
[mergetool "meld"]
path = meld "$LOCAL" "$MERGED" "$REMOTE" --output "$MERGED"
[diff]
algorithm = histogram
renames = copies
submodule = diff
mnemonicprefix = true
compactionHeuristic = true
indentHeuristic = true
colorMoved = dimmed_zebra
[log]
date = local
[core]
autocrlf = input
pager = delta --true-color='always'
excludesfile = ~/.gitignore-global
trustctime = true
quotepath = false
longpaths = true
untrackedCache = true
fsync = loose-objec
fsyncMethod = batch
[gc]
auto = 0
autoDetach = false
refLogExpire = never
refLogExpireUnreachable = never
[interactive]
diffFilter = delta --color-only
[rerere]
enabled = true
[init]
templatedir = ~/.git-templates
defaultBranch = main
[credential]
helper = store
[credential "https://github.com"]
username = kwilczynski
[gpg]
program = gpg
[push]
default = current
followTags = true
[pull]
rebase = true
[fetch]
prune = true
[rebase]
autosquash = true
[tag]
sort = version:refname
forceSignAnnotated = true
[branch]
autosetuprebase = always
[url "[email protected]:"]
insteadOf = gh:
pushInsteadOf = github:
pushInsteadOf = git://github.com/
[url "[email protected]:"]
insteadOf = https://github.com/
[url "git://github.com/"]
insteadOf = github:
[url "[email protected]:"]
insteadOf = gst:
pushInsteadOf = gist:
pushInsteadOf = git://gist.github.com/
[url "git://gist.github.com/"]
insteadOf = gist:
[url "[email protected]:"]
insteadOf = https://bitbucket.org/
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
process = git-lfs filter-process
smudge = git-lfs smudge -- %f