-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
292 lines (245 loc) · 9.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
#
# d8b 888 .d888 d8b
# Y8P 888 d88P" Y8P
# 888 888
# .d88b. 888 888888 .d8888b .d88b. 88888b. 888888 888 .d88b
# d88P"88b 888 888 d88P" d88""88b 888 "88b 888 888 d88P"88b
# 888 888 888 888 888 888 888 888 888 888 888 888 888
# d8b Y88b 888 888 Y88b. Y88b. Y88..88P 888 888 888 888 Y88b 888
# Y8P "Y88888 888 "Y888 "Y8888P "Y88P" 888 888 888 888 "Y88888
# 888 888
# Y8b d88P Y8b d88P
# "Y88P" "Y88P"
#
# -------------------------------------------------------------------------
# File: .gitconfig
# Help: man git-config
# Source: https://github.com/devpunks
# Author: Ahmid-Ra (github.com/snuggs)
# Maintainer: devPunks <https://github.com/devpunks>
# Description: Git configuration file
# -------------------------------------------------------------------------
# See /etc/gitconfig (where available)
# ------------------------------------------------------------------------
# {{{ Configuration
# ------------------------------------------------------------------------
[github]
user = snuggs
[user]
name = snuggs
email = [email protected]
[author]
name = snuggs
email = [email protected]
[committer]
name = snuggs
email = [email protected]
[credential]
helper = cache
[help]
format = man # [man|info|web|html]
htmlPath = https://git-scm.com/docs/
[advice]
statusHints = on
detachedHead = on
pushNeedsForce = on
addIgnoredFile = on
forceDeleteBranch = on
statusAheadBehind = on
submodulesNotUpdated = on
[init]
defaultBranch = main
[submodule]
recurse = true
[rerere]
enabled = 1
[log]
# [human|relative|local|default|iso|iso-strict|rfc|short|raw]
# [human-local|relative-local|default-local|iso-local|iso-strict-local|rfc-local|short-local|raw-local]
# https://stackoverflow.com/q/7853332
date = default-local
[status]
aheadBehind = on
[push]
default = upstream
[apply]
whitespace = warn
[branch]
autosetuprebase = always
[showbranch]
default = --topo-order
default = heads/*
# prefab = cherry -v origin/fabrication
[format] # https://git-scm.com/docs/pretty-formats
# https://stackoverflow.com/q/21830810/how-to-make-git-log-cut-long-comments
pretty = %C(reverse) 🗓 %<(18,trunc)%cd %C(reverse italic) %>(11,mtrunc)%cr %C(reset)► %C(bold ul)👤%aN%C(reset) 🌵%C(ul italic)%d%C(reset) 🆔 %h %C(bold)📝 %<(50,trunc)%s
[diff]
submodule = log
[merge]
tool = vimdiff
[mergetool]
tool = vimdiff
[pull]
rebase = true
[core]
pager = cat
autocrlf = input
editor=/usr/bin/vim
sshCommand = 'ssh'
compression = -1
looseCompression = -1
bigFileThreshold = 1m
excludesfile = ~/.gitignore
whitespace = trailing-space,space-before-tab,tab-in-indent,fix,-indent-with-non-tab,-cr-at-eol
[alias]
lg = log -p
br = branch
ci = commit
co = checkout
st = status -sb
pend = cherry -v origin/master
df = diff --color-words='[^[:space:]]'
sh = show --color-words='[^[:space:]]'
graph = log --graph --oneline --decorate=short --branches='*'
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
# }}}
# ------------------------------------------------------------------------
# {{{ ANSI 256 COLOURS
# - https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_colors_in_git
#
# The value for these configuration variables is a list of colors
# (at most two) and attributes separated by spaces.
#
# The attributes are:
# bold, dim, italic, ul, blink, reverse, strike.
# Specific attributes may be turned off by prefixing them
# with no or no- (e.g., noreverse, no-ul, etc).
#
# All the basic colors except `normal` and `default` have a `bright` variant
# that can be specified by prefixing the color with `bright` (i.e. brightred)
#
# The colors accepted are:
# normal, black, red, green, yellow, blue, magenta, cyan, white, and default;
#
# Colors may also be given as numbers between 0 and 255;
# these use ANSI 256-color mode (not all terminals may support this).
# Specify 24-bit RGB values as hex, (i.e. #ff0ab3 not all terminals may support this)
#
# The pseudo-attribute `reset` resets all colors and attributes
# before applying the specified coloring. For example,
# `reset green` will result in a green foreground
# and default background without any active attributes.
#
# ------------------------------------------------------------------------
[color] # https://stackoverflow.com/q/61048433/how-do-i-explore-git-colors
# control the use of color per command family. Its scope will expand as more commands learn
# configuration to set a default for the --color option. Set it to always if you want all output
# not intended for machine consumption to use color, to true or auto if you want such output to use
# color when written to the terminal, or to false or never if you prefer git commands not to use
# color unless enabled explicitly with some other configuration or the --color option.
# color.pager
# A boolean to enable/disable colored output when the pager is in use (default is true).
pager = true
# color.ui
# This variable determines the default value for variables such as color.diff and color.grep that
ui = auto
# color.diff
# Whether to use ANSI escape sequences to add color to patches. If this is set to always, git-
# diff(1), git-log(1), and git-show(1) will use color for all patches. If it is set to true or
# auto, those commands will only use color when output is to the terminal. Defaults to false.
# This does not affect git-format-patch(1) nor the git-diff-* plumbing commands. Can be overridden
# on the command line with the --color[=<when>] option.
diff = always
grep = always
# color.status
# A boolean to enable/disable color in the output of git-status(1). May be set to always, false (or
# never) or auto (or true), in which case colors are used only when the output is to a terminal.
# Defaults to false.
status = always
# color.branch
# A boolean to enable/disable color in the output of git-branch(1).
# May be set to always, false (or never) or auto (or true),
# in which case colors are used only when the output is to a terminal.
#
# Defaults to false.
branch = always
decorate = always
# color.showbranch
# A boolean to enable/disable color in the output of git-show-branch(1). May be set to always,
# false (or never) or auto (or true), in which case colors are used only when the output is to a
# terminal. Defaults to false.
showbranch = always
# color.interactive
# When set to always, always use colors for interactive prompts and displays
# (such as those used by "git-add --interactive"). When false (or never), never.
# When set to true or auto, use colors only when the output is to the terminal.
#
# Defaults to false.
interactive = always
# The first color given is the foreground; the second is the background.
# The position of the attribute, if any, doesn't matter.
# color.branch.<slot>
# Use customized color for branch coloration.
# <slot> is one of current (the current branch), local (a local branch),
# remote (a remote-tracking branch in refs/remotes/), plain (other refs).
[color "branch"]
plain = bold
local = default
remote = dim italic
current = bold reverse ul
# color.diff.<slot>
# Use customized color for diff colorization. <slot> specifies which part of the patch to use the
# specified color, and is one of plain (context text), meta (metainformation), frag (hunk header),
# func (function in hunk header), old (removed lines), new (added lines), commit (commit headers),
# or whitespace (highlighting whitespace errors). The values of these variables may be specified as
# in color.diff.<slot>.
[color "diff"]
whitespace = reverse red
meta = default # headers
plain = italic # unaltered
old = bold red # deletions
new = bold green # additions
frag = bold reverse # i.e. @@ -148,10 +148,10 @@
commit = reverse bold default
# color.status.<slot>
# Use customized color for status colorization. <slot> is one of header (the header text of the
# status message), added or updated (files which are added but not committed), changed (files which
# are changed but not added in the index), untracked (files which are not tracked by git), branch
# (the current branch), or nobranch (the color the no branch warning is shown in, defaulting to
# red). The values of these variables may be specified as in color.branch.<slot>.
[color "status"]
header = default
added = bold default
changed = bold yellow
deleted = default red
branch = bold reverse
nobranch = reverse red
untracked = dim italic
# color.interactive.<slot>
# Use customized color for git add --interactive output.
# <slot> may be prompt, header, help or error,
# for four distinct types of normal output from interactive commands.
# The values of these variables may be specified as in color.branch.<slot>.
[color "interactive"]
help = bold italic
header = reverse red
prompt = reverse bold
error = reverse bold red
# color.remote.<slot>
[color "remote"]
error = reverse red
warning = reverse white
success = reverse blue
# color.push.<slot>
[color "push"]
error = reverse red
warning = reverse white
success = reverse blue
# color.hint.<slot>
[color "advice"]
hint = italic
error = reverse red
warning = reverse italic
success = bold
# }}}
# vim: foldmethod=marker