-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
37 lines (36 loc) · 1.2 KB
/
dot_gitconfig
File metadata and controls
37 lines (36 loc) · 1.2 KB
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
[init]
defaultBranch = main
[user]
name = Jongho Jeon
email = hojong.jjh@gmail.com
[core]
editor = nvim
pager = delta --color-only | less --tabs=4 -RFX
# autocrlf: https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings#about-line-endings
autocrlf = input
eol = lf
[push]
autoSetupRemote = true
[pull]
ff = only
[credential "https://github.com"]
helper = !$(which gh) auth git-credential
[credential "https://gist.github.com"]
helper = !$(which gh) auth git-credential
[interactive]
diffFilter = delta --color-only
[add.interactive]
useBuiltin = false # required for git 2.37.0
[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)
line-numbers = false
# side-by-side = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[alias]
gone = ! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D
[includeIf "gitdir:/Users/jongho.jeon/repos/"]
path = ~/.gitconfig-work