-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
35 lines (28 loc) · 1001 Bytes
/
.gitconfig
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
[init]
defaultBranch = main
[core]
editor = nvim
eol = lf
autocrlf = false
pager = # empty pager for faster `git branch` or use `git --no-pager`
excludesfile = ~/.config/git/ignore
[interactive]
diffFilter = delta --color-only
; diffFilter = riff --color=on
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
tool = nvimdiff
[alias]
diff-words = diff --color-words='[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+'
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
ll = log --stat -p
b = branch -vv --sort=-committerdate
[pager]
diff = delta --pager='moar --no-linenumbers -quit-if-one-screen'
show = delta --pager='moar -quit-if-one-screen'
log = delta --pager='moar -quit-if-one-screen'