-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
62 lines (54 loc) · 1.26 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
[core]
editor = code --wait
ignorecase = false
quotepath = false
pager = "less -R -F -X"
{{- if eq .chezmoi.os "windows" }}
sshCommand = "C:/Windows/System32/OpenSSH/ssh.exe"
{{- else }}
sshCommand = "ssh"
{{- end }}
[user]
signingkey = {{ .user.git.signingkey }}
[gpg]
format = ssh
[gpg "ssh"]
{{- if eq .chezmoi.os "linux" }}
{{- if (.chezmoi.kernel.osrelease | lower | contains "microsoft") }}
program = "/mnt/c/Users/{{ .user.name }}/AppData/Local/1Password/app/8/op-ssh-sign-wsl"
{{- end }}
{{- else if eq .chezmoi.os "darwin" }}
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
{{- else if eq .chezmoi.os "windows" }}
program = "C:/Users/{{ .user.name }}/AppData/Local/1Password/app/8/op-ssh-sign.exe"
{{- end }}
[commit]
gpgsign = true
[init]
defaultBranch = master
[diff]
tool = "code --wait --diff $LOCAL $REMOTE"
[rebase]
autosquash = true
autostash = true
[merge]
conflictstyle = diff3
ff = false
[push]
autoSetupRemote = true
[pull]
ff = only
rebase = merges
[user]
name = {{ .user.name }}
email = {{ .user.email }}
[fetch]
prune = true
[rerere]
enabled = true
[include]
path = ~/.gitconfig_local
[url "git://"]
insteadOf = https://
[url "[email protected]:"]
insteadOf = https://github.com/