Repository navigation
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
156 lines (114 loc) · 3.07 KB
/
Copy pathdot_gitconfig.tmpl
File metadata and controls
156 lines (114 loc) · 3.07 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
# Global Git configuration.
# See:
# 1. https://git-scm.com/docs/git-config
# 2. https://blog.gitbutler.com/how-git-core-devs-configure-git
[include]
path = ~/.personal.gitconfig
{{- if eq .chezmoi.os "linux" }}
{{ if (.chezmoi.kernel.osrelease | lower | contains "microsoft") }}
[credential]
helper =
helper = /mnt/c/Program\\ Files/Git/mingw64/bin/git-credential-manager.exe
[core]
# Use Windows's ssh as the default SSH client.
sshCommand = "ssh.exe"
# Uses 1Password to sign commits.
[gpg "ssh"]
program = "/mnt/c/Users/Rafael/AppData/Local/Microsoft/WindowsApps/op-ssh-sign.exe"
{{ end }}
{{- else if eq .chezmoi.os "darwin" }}
[credential]
helper =
helper = /usr/local/share/gcm-core/git-credential-manager
[includeIf "gitdir:/Volumes/WD_BLACK SN750/Pessoal/"]
path = ~/.personal.gitconfig
[includeIf "gitdir:/Volumes/WD_BLACK SN750/Trabalho/"]
path = ~/.work.gitconfig
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
{{- end }}
# Enables commit signing using a SSH key.
[gpg]
format = ssh
[include]
path = ~/.config/delta/themes/catppuccin.gitconfig
[core]
# CRLF endings in Windows checkouts.
# LF endings on Mac and Linux systems and in the repository.
autocrlf = input
# Retains the execution bit from files at checkout/commit.
filemode = true
# Text editor to be used on commands that launch a text editor.
editor = hx
# Use delta as the default pager.
pager = delta
# Global ignores
excludesfile = ~/.gitignore
# fsmonitor = true
# untrackedCache = true
[credential "https://dev.azure.com"]
useHttpPath = true
[url "git@github.com:"]
insteadof = https://github.com/
[init]
defaultBranch = main
[fetch]
prune = true
pruneTags = true
all = true
[branch]
sort = -committerdate
[tag]
sort = version:refname
[status]
# Show all untracked files by default.
showUntrackedFiles = all
[push]
default = simple
autoSetupRemote = true
followTags = true
[pull]
# Only allows pulls to use the fast-forward method.
ff = only
# rebase = true
[commit]
# Template to be shown on the commit message prompt.
template = ~/.gitcommittemplate
# By default, signs commit with GnuPG.
gpgSign = true
# Verbose commits.
verbose = true
[column]
ui = auto
[merge]
# Visual Studio Code 3-way merge editor as the default mergetool.
tool = code
# (just 'diff3' if git version < 2.3)
conflictstyle = zdiff3
[mergetool "code"]
# Visual Studio Code 3-way merge editor.
# See: https://code.visualstudio.com/updates/v1_70#_command-line-option-merge
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[diff]
algorithm = histogram
colorMoved = default
mnemonicPrefix = true
renames = true
[interactive]
diffFilter = delta --color-only
[delta]
features = catppuccin-mocha
line-numbers = true
side-by-side = true
navigate = true
hyperlinks = true
hyperlinks-file-link-format = "vscode://file/{path}:{line}"
[help]
autocorrect = prompt
[rerere]
enabled = true
autoupdate = true