-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_gitconfig.tmpl
47 lines (37 loc) · 909 Bytes
/
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
[user]
name = {{ .git.name }}
email = {{ .git.email }}
signingkey = {{ .git.signingkey }}
[core]
excludesfile = ~/.gitignore_global
[color]
diff = auto
status = auto
branch = auto
ui = auto
[alias]
ci = commit
co = checkout
cpick = cherry-pick
g = grep --break --heading --line-number
loga = "!authlog() { git log --all --author=$1; }; authlog"
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all --date-order
st = status
[tag]
sort = version:refname
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[init]
defaultBranch = master
[gpg]
format = ssh
{{ if eq .chezmoi.os "darwin" -}}
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
{{ end -}}
[commit]
gpgsign = true