-
Notifications
You must be signed in to change notification settings - Fork 2
/
dot_gitconfig.tmpl
78 lines (64 loc) · 1.28 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
[core]
excludesfile = /Users/adam/.gitignore_global
{{ if eq .chezmoi.os "darwin" }}
editor = code --wait
{{ else }}
editor = nano
{{ end }}
[user]
name = Adam Shand
email = [email protected]
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
mylog = log --pretty=format:'%h %s [%an]' --graph
s = status
st = stage
stA = stage -A
sw = switch
co = checkout
ci = commit
br = branch
cm = commit -m
ca = commit --amend
cam = commit -a -m
[init]
defaultBranch = main
{{ if eq .chezmoi.os "darwin" }}
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
{{ else }}
[diff]
tool = vimdiff
{{ end }}
[difftool]
prompt = false
#[pager]
# diff = delta
# log = delta
# reflog = delta
# show = delta
#[delta]
# features = side-by-side line-numbers
# navigate = true
# syntax-theme = Nord
# line-numbers = true
# side-by-side = true
# #syntax-theme = Monokai Extended
# #plus-style = syntax "#003800"
# #minus-style = syntax "#3f0001"
# #plus-style = "syntax #012800"
# #minus-style = "syntax #340001"
#[interactive]
# diffFilter = delta --color-only
[color]
ui = true
[pull]
rebase = false
[push]
autoSetupRemote = true