-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
166 lines (109 loc) Β· 3.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
163
164
165
166
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[branch]
autosetuprebase = always
[color]
branch = auto
diff = auto
showbranch = auto
status = auto
ui = true
[color "branch"]
current = green bold
local = green
remote = yellow
[color "diff"]
frag = magenta
meta = yellow
new = green
old = red
newMoved = cyan
oldMoved = blue
[color "status"]
added = green reverse
changed = yellow reverse
untracked = red reverse
[core]
abbrev = 12
attributesfile = ~/.gitattributes
autocrlf = input
editor = nvim
excludesfile = ~/.gitignore
# Prevent showing files whose names contain non-ASCII symbols as
# unversioned.
#
# http://michael-kuehnel.de/git/2014/11/21/git-mac-osx-and-german-umlaute.html
precomposeunicode = false
# Make `git rebase` safer on macOS
#
# http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/
trustctime = false
# Treat spaces before tabs and all kinds of trailing whitespace as an error
# [default] trailing-space: looks for spaces at the end of a line
# [default] space-before-tab: looks for spaces before tabs at the beginning
# of a line
whitespace = space-before-tab,-indent-with-non-tab,trailing-space,cr-at-eol
[diff]
# Show blocks of moved text of at least 20 alphanumeric characters
# differently than adds/deletes.
#
# https://git-scm.com/docs/git-diff#git-diff-zebra
colorMoved = zebra
# Use `difftastic` for diffing
external = difft
# Enable an experimental heuristic that shifts the hunk boundary in an
# attempt to make the resulting patch easier to read.
indentHeuristic = true
# Detect copies as well as renames
renames = copies
[fetch]
prune = true
[gpg]
program = /usr/local/bin/gpg
[help]
# If a command is mistyped, make Git automatically run
# the command it thinks the user wanted to type while also
# giving the user some time to prevent it from doing so.
#
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_help_autocorrect
autocorrect = 20
[init]
defaultBranch = main
[pretty]
custom = "%C(yellow)%h%C(magenta bold)%d %C(reset)%s %C(bold blue)<%an> %C(green)(%cr)"
# β β β β ββ date (relative)
# β β β ββ author name
# β β ββ message
# β ββ decorations (branch, heads or tags)
# ββ hash (abbreviated)
[pull]
rebase = true
[push]
# Make new branches to be pushed to the default remote
# and also set upstream tracking
autoSetupRemote = true
# Make `git push` automatically push relevant
# annotated tags when pushing branches out
followTags = true
# Make `git push` push only the current branch
default = simple
[user]
# Do not guess the userβs identity.
#
# https://github.com/git/git/blob/90f7b16b3adc78d4bbabbd426fb69aa78c714f71/Documentation/config.txt#L2847-L2855
useConfigOnly = true
# [!] DO NOT store sensitive information such as the Git user credentials
# (`name`/`email`), or things such as the `signingkey` in this file, add
# them to `~/.gitconfig.local`!
#
# See also: https://github.com/alrra/dotfiles#gitconfiglocal
[include]
path = ~/.gitaliases
# Load local configs.
#
# https://git-scm.com/docs/git-config#_includes
#
# [!] The following needs to remain at the end of this file in order to
# allow any of the above configs to be overwritten by the local ones
path = ~/.gitconfig.local