feat: add command

This commit is contained in:
2025-10-19 18:02:14 +08:00
parent 2bd26fc9ef
commit 03b384b819
9 changed files with 231 additions and 54 deletions
+36 -6
View File
@@ -6,10 +6,12 @@
quotepath = false
editor = vim
excludesfile = ~/.dotfile/git/.gitignore
[push]
default = current
[pull]
rebase = false
[init]
defaultBranch = main
[tag]
sort = version:refname
[column]
ui = auto
[color]
status = auto
diff = auto
@@ -17,17 +19,45 @@
interactive = auto
grep = auto
ui = auto
[merge]
tool = nvimdiff
[push]
#default = current
default = simple
autoSetupRemote = true
followTags = true
[fetch]
prune = true
pruneTags = true
all = true
[pull]
rebase = false
[diff]
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[difftool "nvimdiff"]
cmd = nvim -d \"$LOCAL\" \"$REMOTE\"
[merge]
tool = nvimdiff
[mergetool "nvimdiff"]
cmd = nvim -d \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[includeIf "gitdir:~/workrepo/"]
path = ~/.workgitconfig
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[commit]
verbose = true
[rerere]
enabled = true
autoupdate = true
[help]
autocorrect = prompt
[branch]
autoSetupMerge = always
sort = -committerdate
[alias]
au = add -u
co = checkout