Git有--no-prefix作为默认值吗?

Ken*_*130 13 git

我们正在使用代码协作,每次都必须输入条目--no-prefix.有时人们会忘记,然后他们必须重新提交他们的代码审查.有没有办法全局设置--no-prefix选项,以便从不使用a/b /前缀?

mip*_*adi 20

是的.设置配置选项diff.noprefix:

$ git config --global diff.noprefix true    # All repos
$ git config diff.noprefix true             # Current repo
Run Code Online (Sandbox Code Playgroud)