-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
120 lines (108 loc) · 2.54 KB
/
dot_gitconfig.tmpl
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
[include]
path = /Users/damacus/.gitconfig.local
[dotfiles]
managed = true
[credential]
{{- if eq .chezmoi.os "darwin" }}
helper = osxkeychain
{{- end }}
[core]
pager = delta
excludesFile = ~/.gitignore
[interactive]
diffFilter = delta --color-only
[delta]
line-numbers = true
decorations = true
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[github]
user = damacus
[user]
name = Dan Webb
email = [email protected]
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMCLr7NoB34qERAAJNLHKgOy9EJ40smz4F9HhU5d5i8s
[gpg]
format = ssh
{{- if eq .chezmoi.os "darwin" }}
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
{{- end }}
[commit]
gpgsign = true
# vi: ft=gitconfig
[alias]
co = checkout
count = shortlog -sn
g = grep --break --heading --line-number
gi = grep --break --heading --line-number -i
changed = show --pretty=\"format:\" --name-only
fm = fetch-merge
please = push --force-with-lease
commit = commit -s
commend = commit -s --amend --no-edit
lt = log --tags --decorate --simplify-by-decoration --oneline
[color]
diff = auto
status = auto
branch = auto
ui = true
[core]
excludesfile = ~/.gitignore
editor = nvim
compression = -1
autocrlf = input
whitespace = trailing-space,space-before-tab
precomposeunicode = true
[advice]
addEmptyPathspec = false
[gpg]
program = gpg
[apply]
whitespace = nowarn
[help]
autocorrect = 1
[grep]
extendRegexp = true
lineNumber = true
[push]
autoSetupRemote = true
default = simple
[submodule]
fetchJobs = 4
[commit]
gpgsign = true
[tag]
gpgsign = true
[log]
showSignature = false
[pull]
ff = only
[init]
defaultBranch = main
[format]
signOff = true
[diff]
tool = nvimdiff
[difftool "nvimdiff"]
cmd = nvim -d "$LOCAL" "$REMOTE"
[merge]
tool = nvimmerge
[mergetool "nvimmerge"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[rerere]
enabled = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[secrets]
providers = git secrets --aws-provider
patterns = (A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}
patterns = (\"|')?(AWS|aws|Aws)?_?(SECRET|secret|Secret)?_?(ACCESS|access|Access)?_?(KEY|key|Key)(\"|')?\\s*(:|=>|=)\\s*(\"|')?[A-Za-z0-9/\\+=]{40}(\"|')?
patterns = (\"|')?(AWS|aws|Aws)?_?(ACCOUNT|account|Account)_?(ID|id|Id)?(\"|')?\\s*(:|=>|=)\\s*(\"|')?[0-9]{4}\\-?[0-9]{4}\\-?[0-9]{4}(\"|')?
allowed = AKIAIOSFODNN7EXAMPLE
allowed = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY