Override git config --system in user .gitconfig file (git config --global)

I have this file in the system configuration (but it can also be included in git config include.path="/path/to/defaultconfig"I would like to reset some values ​​previously set.

In particular, the default configuration file contains diff.external = git-diff-wrapper, and I would like to deactivate it for some user

+1
source share
1 answer

If this is a system configuration, each user can override the configuration value in their global and local settings.

"" .
"", , . 2010 .

, send-email:

, , , , , .
git-send-email , , , , ( , smtpuser = "0" ).

: diff.c#run_diff_cmd() diff, diff.external ( "").

if (!strcmp(var, "diff.external"))
  return git_config_string(&external_diff_cmd_cfg, var, value);

:

if (pgm) {
  run_external_diff(pgm, name, other, one, two, xfrm_msg,
  complete_rewrite);
  return;
}

, diff diff , , git ( ).

+2

Source: https://habr.com/ru/post/1661356/


All Articles