git 配置
vi ~/.gitconfig
安装开源命令行对比工具
delta
: https://github.com/dandavison/delta
详细设置delta:https://www.5axxw.com/wiki/content/xrx4vf
[user]name = xxemail = xx@xxxx.com[core]attributesfile = ~/.gitattributespager = deltaquotepath = false[credential]helper = cache --timeout=3600[color]diff = autostatus = autobranch = autointeractive = autoui = truepager = true[interactive]diffFilter = delta --color-only[pull]rebase = true[diff]colorMoved = default[diff "image"]command = compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | display -title \"$1\" -[merge]conflictstyle = diff3ff = nocommit = no[delta]side-by-side = trueline-numbers-left-format = ""line-numbers-right-format = "│ "syntax-theme = Nordnavigate = truelight = false[clone]#recurseSubmodules = true[alias]st = statusbr = branchlg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commitlast = log -1