Update git dotfiles
This commit is contained in:
parent
9e73cc0278
commit
941fa2a14b
@ -1,8 +1,13 @@
|
|||||||
|
# See: https://jvns.ca/blog/2024/02/16/popular-git-config-options/
|
||||||
|
# See: https://blog.gitbutler.com/how-git-core-devs-configure-git/
|
||||||
[core]
|
[core]
|
||||||
editor = nvim
|
editor = nvim
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
pager = delta
|
pager = delta
|
||||||
excludeFiles = ~/.gitignore
|
excludesFiles = ~/.gitignore
|
||||||
|
|
||||||
|
[column]
|
||||||
|
ui = auto
|
||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only
|
||||||
@ -16,16 +21,28 @@
|
|||||||
conflictstyle = zdiff3
|
conflictstyle = zdiff3
|
||||||
|
|
||||||
[diff]
|
[diff]
|
||||||
colorMoved = default
|
colorMoved = plain
|
||||||
algorithm = histogram
|
algorithm = histogram
|
||||||
|
mnemonicPrefix = true
|
||||||
|
renames = true
|
||||||
|
|
||||||
[rebase]
|
[rebase]
|
||||||
autosquash = true
|
autoSquash = true
|
||||||
autostash = true
|
autoStash = true
|
||||||
|
updateRefs = true
|
||||||
|
|
||||||
[push]
|
[push]
|
||||||
default = current
|
default = simple
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
|
followTags = true
|
||||||
|
|
||||||
|
[fetch]
|
||||||
|
prune = true
|
||||||
|
pruneTags = true
|
||||||
|
all = true
|
||||||
|
|
||||||
|
[pull]
|
||||||
|
rebase = true
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
@ -35,9 +52,10 @@
|
|||||||
|
|
||||||
[rerere]
|
[rerere]
|
||||||
enabled = true
|
enabled = true
|
||||||
|
autoupdate = true
|
||||||
|
|
||||||
[help]
|
[help]
|
||||||
autocorrect = 10
|
autocorrect = prompt
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
date = iso
|
date = iso
|
||||||
@ -48,6 +66,9 @@
|
|||||||
[color]
|
[color]
|
||||||
ui = auto
|
ui = auto
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
sort = version:refname
|
||||||
|
|
||||||
# See: https://git-scm.com/docs/git-config#_includes
|
# See: https://git-scm.com/docs/git-config#_includes
|
||||||
[includeIf "gitdir:~/src/personal/**"]
|
[includeIf "gitdir:~/src/personal/**"]
|
||||||
path = ~/.gitconfig-personal
|
path = ~/.gitconfig-personal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user