-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot-gitconfig
63 lines (57 loc) · 1.2 KB
/
dot-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
# NOTE: Use conditional configs for editor, pager using shell script to check
# the conditions.
#
# Example:
#
# [core]
# editor = "git_ed.bash"
#
# $ cat git_ed.bash
# #!/bin/bash
# if [ $HOST_DEV ]; then
# ED="vim"
# else
# ED="vi"
# fi
[core]
editor = vim
pager = delta
# NOTE: Disable git compression if EOF error when cloning
#packedGitLimit = 512m
#packedGitWindowSize = 512m
#compression = 9
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
# NOTE: Use git grep with custom colors and 'less' pager as a workaround for
# git-delta pager changing '-' to ':' in some file names.
[color "grep"]
filename = magenta
linenumber = green
[diff]
tool = vimdiff
colorMoved = default
[merge]
tool = vimdiff
[difftool]
prompt = false
[pull]
rebase = true
[init]
defaultBranch = main
[user]
useConfigOnly = true
[log]
abbrevCommit = false
decorate = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
# NOTE: Disable git compression if EOF error when cloning
#[pack]
# deltaCacheSize = 2047m
# packSizeLimit = 2047m
# windowMemory = 2047m