-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
44 lines (39 loc) · 921 Bytes
/
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
[user]
name = Rainer Sigwald
email = [email protected]
[core]
editor = code --wait
pager = delta --dark --relative-paths
[diff]
external = difft
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only
[alias]
dt = difftool
lg = log --color --graph --date=human --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
publish = !git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)
newbranch = !git checkout --no-track -b $1 upstream/main && :
{{ if eq .chezmoi.os "darwin" -}}
[credential]
helper = osxkeychain
{{ end -}}
[merge]
conflictstyle = zdiff3
[rebase]
autosquash = true
updateRefs = true
[hub]
protocol = https
[help]
autocorrect = 20
[diff]
algorithm = histogram