-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
70 lines (65 loc) · 1.5 KB
/
dot_gitconfig.tmpl
File metadata and controls
70 lines (65 loc) · 1.5 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
# --------------------------------
# Configuration
[core]
excludesfile = ~/.gitignore_global
editor = vim
# pager = delta
[credential]
helper = store
[credential "https://github.com"]
helper =
helper = !{{ lookPath "gh" }} auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !{{ lookPath "gh" }} auth git-credential
[init]
defaultBranch = main
[user]
name = Clifford Ressel
email = {{ .email | quote }}
# --------------------------------
# Stylistic
[color]
# Use terminal colors when supported
ui = auto
interactive = auto
[delta "interactive"]
keep-plus-minus-markers = false
line-numbers = false
navigate = true
side-by-side = false
[delta]
keep-plus-minus-markers = false
line-numbers = false
navigate = true
side-by-side = false
[diff]
submodule = log
colorMoved = default
[interactive]
diffFilter = delta --color-only --features=interactive
[pager]
blame = delta
diff = delta
reflog = delta
show = delta
[merge]
conflictstyle = diff3
# --------------------------------
# Shortcuts
[alias]
ad = !git add -A && git status
br = branch
co = commit
ch = checkout
di = diff
st = status
lo = log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(green)(%cr)%C(reset)%C(reset) %s %C(blue)<%an>%C(reset)' --abbrev-commit
pushf = push --force-with-lease
{{ if (lookPath "git-lfs") -}}
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
{{ end -}}