feat(git): enable some sensible defaults
This commit is contained in:
31
git/config
31
git/config
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
|
verbose = true
|
||||||
|
|
||||||
; NOTE:(@janezicmatej) github/gitlab don't support these
|
; NOTE:(@janezicmatej) github/gitlab don't support these
|
||||||
; [push]
|
; [push]
|
||||||
@@ -17,14 +18,16 @@
|
|||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
|
||||||
[diff]
|
[rebase]
|
||||||
tool = nvimdiff
|
updateRefs = true
|
||||||
|
|
||||||
[difftool "nvimdiff"]
|
[rerere]
|
||||||
cmd = nvim -d "$LOCAL" "$REMOTE"
|
enabled = true
|
||||||
|
autoUpdate = true
|
||||||
|
|
||||||
[merge]
|
[merge]
|
||||||
tool = nvimdiff
|
tool = nvimdiff
|
||||||
|
conflictStyle = zdiff3
|
||||||
|
|
||||||
[mergetool]
|
[mergetool]
|
||||||
keepBackup = false
|
keepBackup = false
|
||||||
@@ -33,8 +36,26 @@
|
|||||||
[mergetool "nvimdiff"]
|
[mergetool "nvimdiff"]
|
||||||
layout = "LOCAL,BASE,REMOTE / MERGED"
|
layout = "LOCAL,BASE,REMOTE / MERGED"
|
||||||
|
|
||||||
|
[diff]
|
||||||
|
tool = nvimdiff
|
||||||
|
algorithm = histogram
|
||||||
|
colorMoved = plain
|
||||||
|
mnemonicPrefix = true
|
||||||
|
|
||||||
|
[difftool "nvimdiff"]
|
||||||
|
cmd = nvim -d "$LOCAL" "$REMOTE"
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
blame = "!f() { [ -f .git-blame-ignore-revs ] && git blame --ignore-revs-file .git-blame-ignore-revs \"$@\" || git blame \"$@\"; }; f"
|
blame-ignore = "config blame.ignoreRevsFile .git-blame-ignore-revs"
|
||||||
|
|
||||||
|
[branch]
|
||||||
|
sort = -committerdate
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
sort = version:refname
|
||||||
|
|
||||||
|
[help]
|
||||||
|
autoCorrect = prompt
|
||||||
|
|
||||||
[maintenance]
|
[maintenance]
|
||||||
auto = true
|
auto = true
|
||||||
|
|||||||
Reference in New Issue
Block a user