-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
77 lines (61 loc) · 1.65 KB
/
dot_gitconfig.tmpl
File metadata and controls
77 lines (61 loc) · 1.65 KB
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
[user]
name = Travis Lyons
email = {{ .email.primary }}
{{- if eq .profile "work"}}
signingkey = {{ onepasswordRead "op://Employee/GitHub SSH Key/public key" }}
{{- end }}
{{- if eq .profile "home"}}
signingkey = {{ onepasswordRead "op://Private/SSH Key/public key" }}
{{- end }}
[core]
autocrlf = input
pager = delta
excludesFile = ~/.gitignore
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
[merge]
conflictStyle = zdiff3
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
func = 146 bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[init]
defaultBranch = main
[alias]
lg = log --exclude='refs/jj/*' --all --color --graph --pretty=format:'%C(yellow)%d%Creset %C(bold blue)%h%Creset %C(green)(%cr)%Creset - %s %C(bold blue)<%an>%Creset' --abbrev-commit
lga = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n %C(white)Hash:%C(reset) %C(cyan)%H%Creset%n %C(white)Date:%C(reset) %C(cyan)%ai%Creset' --abbrev-commit --stat --all
co = checkout
br = branch
ci = commit
st = status
[gpg]
format = ssh
[gpg "ssh"]
{{- if eq .profile "work"}}
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
{{ else }}
program = "/opt/1Password/op-ssh-sign"
{{- end }}
[commit]
gpgsign = true
{{- if eq .profile "work" }}
[includeIf "gitdir:~/src/github.com/trly"]
path = ~/.gitconfig-personal
{{- end }}
[push]
autoSetupRemote = true
[pull]
rebase = true