-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitconfig
202 lines (178 loc) Β· 3.45 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
[core]
editor = nvim
ignorecase = false
quotepath = off
[user]
name = Ramkumar Ramachandra
email = r@artagnon.com
[github]
user = artagnon
[diff]
colorMoved = dimmed-zebra
[apply]
whitespace = fix
[format]
signoff = true
coverLetter = auto
defaultTo = master
[sendemail]
smtpuser = r@artagnon.com
suppresscc = self
smtpserver = smtp.fastmail.com
smtpserverport = 587
smtpencryption = tls
chainreplyto = false
[push]
default = current
[pretty]
lg = %C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr %an)%C(reset)
[man]
viewer = woman
[status]
short = true
branch = true
[pull]
rebase = true
[merge]
conflictstyle = diff3
log = true
[rerere]
enabled = true
[rebase]
autosquash = true
autostash = true
[diff]
submodule = log
[pack]
usebitmaps = true
[log]
date = relative
mailmap = true
[blame]
date = relative
blankboundary = true
showroot = true
[advice]
pushUpdateRejected = false
statusHints = false
commitBeforeMerge = false
resolveConflict = false
implicitIdentity = false
detachedHead = false
amWorkDir = false
waitingForEditor = false
rmHints = false
[clean]
requireForce = false
[credential]
helper = cache --timeout 36000
[url "git@github.com:"]
insteadOf = gh:
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[init]
defaultBranch = master
[alias]
# status
s = status
# log
l = log --stat
lp = log --patch
l1 = log --oneline --stat
lr = log --reverse --stat
lf = log --follow
la = !git log --stat --author=\"$(git config --get user.name)\"
la1 = !git log --oneline --author=\"$(git config --get user.name)\"
graph = log --graph --decorate --pretty=oneline --abbrev-commit
# shortlog
sl = shortlog -ns --no-merges
sle = shortlog -nse --no-merges
sla = !git shortlog -ns --no-merges --author=\"$(git config --get user.name)\"
# show
sh = show
# clone
c = clone
# fetch
f = fetch
fo = fetch origin
fa = fetch --all
# pull and push
pu = pull
p = push
pup = push -u
pf = push -f
# remote
rsh = remote show -n
rad = remote add
rrm = remote rm
rpr = remote prune
rre = remote rename
rsu = remote set-url
# checkout
co = checkout
cof = checkout -f
cob = checkout -b
com = checkout master
# branch
bd = branch -D
bm = branch -M
bru = branch -u
br = for-each-ref --format='%(color:red)%(HEAD) %(color:green)%(refname:short)%(color:reset)%(upstream:trackshort)' --count 10 --sort='-committerdate' refs/heads
bra = branch -a
# merge
m = merge
# add, commit
a = add
ci = commit
ciaa = commit --amend -a
ciam = commit --amend
cial = commit -a
# check-pick
cp = cherry-pick
cpc = cherry-pick --continue
cpa = cherry-pick --abort
cpq = cherry-pick --quit
# rebase
re = rebase
rem = rebase master
reo = rebase --onto
ri = rebase -i
rim = rebase -i master
rc = rebase --continue
ra = rebase --abort
rs = rebase --skip
# clang-format
cf = clang-format
# format-patch and send-email
fp = format-patch -M -C
se = send-email
# reset
r = reset
rh = reset --hard
# stash
ss = stash save
ssk = stash save --keep-index
sp = stash pop
sd = stash drop
sc = stash clear
# blame
b = blame -M -CC --color-by-age --color-lines
# filter-branch
fb = filter-branch
# submodule
sad = submodule add
sud = submodule update --init
# diff
d = diff -w
stat = diff --stat
dni = diff --no-index
dc = diff --cached
# config
conf = config
# describe
desc = describe --always --contains --all
# clean
cl = clean -dfx