-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
221 lines (188 loc) · 6.32 KB
/
.gitconfig
File metadata and controls
221 lines (188 loc) · 6.32 KB
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
##################################
#
# :: GIT GLOBAL SETTINGS ::
#
# References:
# - https://github.com/dougblack/dotfiles/blob/master/.gitconfig
# - https://gist.github.com/pksunkara/988716
# - https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config
# - https://nathanhoad.net/how-to-colours-in-git/
# - https://medium.com/easyread/today-i-learned-fix-go-get-private-repository-return-error-terminal-prompts-disabled-8c5549d89045
# - https://stackoverflow.com/a/15128894
# - https://stackoverflow.com/a/34065448
# - https://git-scm.com/docs/git-config
# - https://jvns.ca/blog/2023/11/06/rebasing-what-can-go-wrong-/
# - https://git.tsundere.moe/Frederick888/frederick-settings/blob/master/.gitconfig
# - https://dandavison.github.io/delta/configuration.html
# - https://stackoverflow.com/a/57601163
# - https://gist.github.com/pksunkara/988716
# - https://github.com/dandavison/delta/blob/main/manual/src/features-named-groups-of-settings.md
#
##################################
[alias]
a = add --all
ai = add -i
ap = add -p
branches = "branch --all --column=always --sort='*refname' --format=\"%(color:cyan black bold reverse) > %(refname:short) %(color:reset)\n%(color:blue italic)(Last commit by %(committername) at %(committerdate:format:%Y-%m-%d %H:%M:%S))%(color:reset)\t%(color:white black reverse italic)%(objectname:short)%(color:reset)\t%(color:black)%(subject)%(color:reset)\n\""
csi = log --follow --
gc = commit -S
group = shortlog -s -n
logs = "log --decorate=short --show-pulls --pretty=format:'%C(green bold)> %Creset%C(cyan)%H%Creset %C(black bold)%cd%Creset %C(auto)%d%Creset%n%C(blue italic) %cN (%cE)%Creset %C(black bold)[sign: %G?]%Creset%n%C(auto) %+B%n' --stat"
tags = "tag --sort=-creatordate --format=\"%(color:green bold)> %(color:reset)%(color:cyan)%(refname:short) %(color:black bold)%(if)%(taggerdate)%(then)Tagged at %(taggerdate:format:%Y-%m-%d %H:%M:%S)%(else)%(if)%(creatordate)%(then)Created at %(creatordate:format:%Y-%m-%d %H:%M:%S)%(else)(unknown date for tag/creation)%(end)%(end)\n %(color:blue italic)%(if)%(tagger)%(then)Tagged by: %(tagger)%(else)%(if)%(authorname)%(then)Authored by: %(authorname)%(if)%(authoremail)%(then) %(authoremail)%(end)%(else)(no tagger/author identified)%(end)%(end) %(color:reset) %(color:black bold)[signed: %(if)%(contents:signature)%(then)Y%(else)N%(end)]\n%(color:reset)\n %(color:black)%(contents:subject)\n\n%(contents:body)\n\""
stashes = "stash list --decorate=short --show-pulls --pretty=format:'%C(green bold)%gd > %Creset%C(cyan)%H%Creset %C(black bold)%cd%Creset %C(auto)%d%Creset%n%C(blue italic) %cN (%cE)%Creset %C(black bold)[sign: %G?]%Creset%n%n%C(auto) %B%n'"
stashgrep = "!f() { for i in `git stash list --format=\"%gd\"` ; \
do git stash show -p $i | grep -H --label=\"$i\" \"$@\" ; done ; }; f"
[branch]
sort = -committerdate
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
hooksPath = ~/.githooks_global
pager = delta --line-numbers --side-by-side
[column]
ui = auto
[checkout]
defaultRemote = origin
[commit]
gpgsign = true
cleanup = strip
template = ~/.gitmessage_global
status = false
[color]
ui = auto
[color "branch"]
current = yellow black reverse bold
local = green black reverse bold dim
remote = cyan black reverse bold dim
[color "diff"]
meta = 60 italic
frag = 60 italic
func = 245 italic
colorMoved = plain
context = 245 normal
contextDimmed = 202
contextBold = 220
commit = 210 bold
whitespace = 196 reverse
old = 9 bold
oldBold = 9 italic
oldMoved = 9 italic
oldDimmed = 9 italic
oldMovedDimmed = 9 italic
oldMovedAlternative = 9 italic
oldMovedAlternativeDimmed = 9 italic
new = 70 bold
newBold = 70 italic
newMoved = 70 italic
newDimmed = 70 italic
newMovedDimmed = 70 italic
newMovedAlternative = 70 italic
newMovedAlternativeDimmed = 70 italic
[color "status"]
added = green black reverse bold
changed = yellow black reverse bold
untracked = red black reverse bold
[diff]
tool = nvimdiff
algorithm = histogram
context = 4
renameLimit = 8192
colorMoved = plain
renames = true
[difftool]
prompt = false
trustExitCode = true
[delta]
tabs = 8
features = line-numbers decorations
navigate = true
light = true
line-numbers = true
[delta "decorations"]
line-numbers = true
line-numbers-minus-style = red
line-numbers-plus-style = green
line-numbers-left-style = gray
line-numbers-left-format = "{nm:>4}┊"
line-numbers-right-style = gray
line-numbers-right-format = "{np:>4}┊"
line-numbers-zero-style = gray
file-added-label = [NEW]
file-copied-label = [COPIED]
file-modified-label = [MODIF]
file-removed-label = [REMOV]
file-renamed-label = [RENAM]
file-style = bold black
file-decoration-style = bold orange box
hunk-header-decoration-style = bold olive ul
hunk-header-file-style = olive bold
hunk-header-line-number-style = orange
hunk-header-style = italic file line-number orchid
[fetch]
recurseSubmodules = yes
prune = true
output = full
writeCommitGraph = true
pruneTags = true
all = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[format]
pretty = fuller
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only --line-numbers
[log]
date = format:%A, %d de %B de %Y às %H:%M:%S
decorate = full
[merge]
tool = nvimdiff2
conflictStyle = diff3
prompt = false
branchdesc = true
log = true
verbosity = 5
renamelimit = 16384
ff = false
[pull]
rebase = true
ff = only
[push]
default = current
followtags = true
autoSetupRemote = true
[rerere]
enabled = true
autoUpdate = true
[rebase]
autoSquash = true
updateRefs = true
[stash]
showStat = true
showPatch = true
showIncludeUntracked = true
[sequence]
editor = interactive-rebase-tool
[tag]
short = version:refname
sort = version:refname
[trim]
bases = master,main
protected = *production
[user]
name = Davi Marcondes Moreira
email = davi.marcondes.moreira@gmail.com
username = devdrops
signingkey = 564848AD8F25F213
writeExtras = true
[url "git@github.com:"]
insteadOf = https://github.com/
[url "git@bitbucket.org:"]
insteadOf = https://bitbucket.org/
[web]
browser = google-chrome