-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
62 lines (62 loc) · 1.4 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
[user]
name = {{ .name }}
email = {{ .email }}
signingkey = {{ printf "%s.pub" .key }}
[core]
{{- if eq .chezmoi.os "windows" }}
fsmonitor = true
sshCommand = 'C:/Program Files/OpenSSH/ssh.exe'
{{- end }}
ignorecase = false
autocrlf = input
editor = code --wait
[gpg]
format = ssh
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
[difftool]
prompt = false
[mergetool]
trustExitCode = true
[protocol]
version = 2
{{- if eq .chezmoi.os "windows" }}
[http]
sslBackend = schannel
{{- end }}
[init]
defaultBranch = main
[pull]
ff = only
[push]
autoSetupRemote = true
[checkout]
defaultRemote = origin
[merge]
ff = only
[rebase]
autoStash = true
updateRefs = true
[commit]
gpgsign = true
[tag]
sort = version:refname
[alias]
st = status -sb
ll = log --oneline
last = log -1 HEAD --stat
hist = log --graph --abbrev-commit --decorate --date=short \
--format=format:'%C(bold cyan)%h%C(reset) %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)%an%C(reset) %C(bold yellow)%d%C(reset)' \
--branches --remotes --tags
{{- if .work.enabled }}
[includeIf "gitdir:{{ .git.path }}/github.com/lexisnexis-iac/"]
path = ~/.work.gitconfig
[includeIf "gitdir:{{ .git.path }}/github.com/lexisnexis-rba/"]
path = ~/.work.gitconfig
{{- end }}