-
Notifications
You must be signed in to change notification settings - Fork 0
/
private_dot_gitconfig.tmpl
97 lines (79 loc) · 1.83 KB
/
private_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
85
86
87
88
89
90
91
92
93
94
95
96
97
[user]
name = Alon Dahari
email = {{- if .personal }} [email protected] {{- else }} [email protected] {{- end }}
{{if .personal -}}
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB3Y3b9qKWgLduO4xUkSlpR5BiV6CGsCt4gjkTBKhAoE
{{- end }}
[color]
ui = auto
[core]
pager = delta
[interactive]
diffFilter = delta --color-only # highlight code in git add -p
[delta]
navigate = true # use n and N to move between diff sections
light = false
line-numbers = true
side-by-side = true
[alias]
st = status
ci = commit -v
co = checkout
di = diff
dc = diff --cached
b = branch
l = log --graph --abbrev-commit --date=relative --pretty=format:\"%C(yellow)%h%Creset - %G? -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\" --topo-order
la = !git l --all
amend = commit --amend
wdi = diff --color-words
wdc = diff --color-words --cached
fa = fetch --all
aa = add --all
head = !git l -1
h = !git head
r = !git l -20
ra = !git r --all
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
pom = push origin master
ds = diff --stat=160,120
dh1 = diff HEAD~1
scs = sparse-checkout set
scd = sparse-checkout disable
[commit]
verbose = true
gpgsign = true
[core]
quotepath = false
ignorecase = false
[push]
default = simple
autoSetupRemote = true
[merge]
conflictstyle = zdiff3
[rebase]
autosquash = true
autostash = true
[pull]
rebase = true
[init]
defaultBranch = main
[advice]
skippedCherryPicks = false
[diff]
submodule = log
colorMoved = default
algorithm = histogram
tool = difftastic
[status]
submoduleSummary = true
[pull "submodule"]
recurse = true
{{if .personal -}}
[gpg]
format = ssh
[gpg "ssh"]
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
allowedSignersFile = ~/.ssh/allowed_signers
{{end}}