-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitconfig
163 lines (137 loc) · 4.8 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
##################################
#
# :: 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
#
##################################
[user]
name = Davi Marcondes Moreira
email = davi.marcondes.moreira@gmail.com
username = devdrops
signingkey = 564848AD8F25F213
writeExtras = true
[core]
editor = nvim
whitespace = trailing-space
excludesfile = ~/.gitignore_global
hooksPath = ~/.githooks_global
pager = delta --line-numbers --side-by-side
[branch]
sort = -committerdate
[tag]
short = version:refname
[rerere]
enabled = true
autoUpdate = true
[init]
defaultBranch = main
[url "git@github.com:"]
insteadOf = https://github.com/
[url "git@bitbucket.org:"]
insteadOf = https://bitbucket.org/
[fetch]
recurseSubmodules = yes
prune = true
output = full
writeCommitGraph = true
[pull]
rebase = true
ff = only
[push]
default = current
followtags = true
[diff]
tool = nvimdiff
algorithm = histogram
context = 4
renameLimit = 8192
[difftool]
prompt = false
trustExitCode = true
[merge]
tool = nvimdiff2
conflictStyle = diff3
prompt = false
branchdesc = true
log = true
verbosity = 5
renamelimit = 16384
ff = false
[stash]
showStat = true
showPatch = true
showIncludeUntracked = true
[interactive]
diffFilter = delta --color-only --line-numbers
[delta]
tabs = 4
navigate = true
light = true
; Afeta git log
[format]
pretty = fuller
[log]
date = format:%A, %d de %B de %Y às %H:%M:%S
decorate = full
[alias]
gc = commit -S
group = shortlog -s -n
csi = log --follow --
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'"
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\""
[commit]
gpgsign = true
cleanup = strip
template = ~/.gitmessage_global
status = false
[color]
ui = auto
; Cores na exibição de branches
[color "branch"]
current = yellow black reverse bold
local = green black reverse bold dim
remote = cyan black reverse bold dim
; Cores na exibição de diff
[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
; Cores na exibição de status
[color "status"]
added = green black reverse bold
changed = yellow black reverse bold
untracked = red black reverse bold