-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
69 lines (64 loc) · 1.48 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
# --------------------------------
# Configuration
[core]
excludesfile = ~/.gitignore_global
editor = vim
# pager = delta
{{ if eq .chezmoi.username "clifford.ressel" }}
{{- /* only on work machine */ -}}
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
{{- else }}
[credential]
helper = store
{{- end }}
[init]
# In accordance with recent changes in the Git community,
# use "main" to designate default branch
defaultBranch = main
# defaultBranch = master
[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
re = restore
st = status
logg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit
logp = log -p
pushf = push --force-with-lease