-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
67 lines (67 loc) · 1.81 KB
/
.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
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
[core]
editor = vim
pager = delta
# Speed up commands involving untracked files such as `git status`.
# https://git-scm.com/docs/git-update-index#_untracked_cache
untrackedCache = true
# https://github.blog/2022-06-29-improve-git-monorepo-performance-with-a-file-system-monitor/
fsmonitor = true
hooksPath = ~/.git-templates/hooks
[include]
# Allow local customizations in the .gitconfig_local file
path = ~/.gitconfig.local
[interactive]
diffFilter = delta --color-only
[branch]
# Show most recently changed branches first.
sort = -committerdate
[diff]
algorithm = histogram
colorMoved = default
tool = vimdiff
submodule = log
# detect renamed files and show only actual differences between them
renames = true
[diff "bin"]
textconv = hexdump -v -C
[merge]
conflictstyle = diff3
tool = fugitive
[mergetool "fugitive"]
cmd = vim -f -c Gdiff $MERGED
[pull]
rebase = false
[push]
default = simple
autoSetupRemote = true
[fetch]
# https://git-scm.com/docs/git-fetch#_pruning
pruneTags = true
recurseSubmodules = on-demand
# 0 gives reasonable default, see https://git-scm.com/docs/git-config#Documentation/git-config.txt-fetchparallel
parallel = 0
# https://devblogs.microsoft.com/devops/updates-to-the-git-commit-graph-feature/
writeCommitGraph = true
[rerere]
enabled = true
[status]
submoduleSummary = true
showUntrackedFiles = all
[submodule]
recurse = true
[init]
templatedir = ~/.git-templates
[delta]
navigate = true # use n and N to move between diff sections
side-by-side = false
paging = always
line-numbers = true
syntax-theme = OneHalfDark
width = 1
hunk-header-style = syntax bold
hunk-header-decoration-style = omit
file-style = yellow italic
file-decoration-style = yellow ul
line-numbers-zero-style = "#4b5263"
line-numbers-left-format = "{nm:^4} "
line-numbers-right-format = "{np:^4} "