如何使用"git config"命令配置名称部分?

Enz*_*Chi 5 git git-config

我怎么能使用"git config"命令来实现这样的配置:

[diff "odf"]
  textconv=odt2txt
Run Code Online (Sandbox Code Playgroud)

lar*_*sks 6

像这样:

git config diff.odf.textconv odt2txt
Run Code Online (Sandbox Code Playgroud)

这将导致:

[diff "odf"]
        textconv = odt2txt
Run Code Online (Sandbox Code Playgroud)

  • 没有名为“ global.user.name”的配置变量。您需要`git config --global user.name` (2认同)