-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
84 lines (82 loc) · 1.87 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
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[alias]
amend = commit --amend
last = diff HEAD^
uncommit = reset --soft HEAD^
filelog = log -u
changes = log --pretty=shortf --name-status
shortlog = log --pretty=shortlog
simple = log --pretty=simple
oneline = log --topo-order --pretty=one
brief = log --topo-order --pretty=brief
up = pull --rebase --autostash
[format]
pretty = format:%C(bold)Commit:%C(reset) %C(yellow)%H%C(auto)%d%n%C(bold)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)Date:%C(reset) %C(blue)%ad (%ar)%C(reset)%n%+B
[init]
defaultBranch = main
[pretty]
shortlog = format:%C(yellow)%h%C(reset) %C(cyan)%cr%C(reset) %cn %Cgreen%s%Creset
simple = format: * %s
one = format:%C(yellow)%h%C(reset) %s %Cgreen(%cr) %C(auto)%d%C(reset)
brief = format:%C(yellow)%h%C(reset) %s%n%C(blue)(%ar%C(reset) by %C(cyan)%an)%C(auto)%d%C(reset)%n
[merge]
summary = true
verbosity = 1
tool = fugitive
[mergetool "fugitive"]
cmd = nvim -f \"+Gdiff\" \"$MERGED\"
[apply]
whitespace = nowarn
[branch]
autosetupmerge = true
[push]
default = tracking
[core]
autocrlf = false
editor = nvim
quotepath = false
excludesfile = ~/.gitignore_global
[advice]
statusHints = false
[diff]
mnemonicprefix = true
[rerere]
enabled = true
[difftool]
prompt = false
[rebase]
autosquash = true
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[log]
date = local
[pull]
rebase = true
[user]
name = {{ .name }}
email = {{ .email }}
{{- if eq .chezmoi.os "darwin" }}
# GPG signing (Mac only for now)
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
allowedSignersFile = "~/.ssh/allowed_signers"
[commit]
gpgsign = true
[user]
signingkey = {{ .publicKey }}
{{- end }}
# vim: ft=gitconfig