取消 git 配置

5

我在Mac上使用FileMerge查看差异,并已配置如下:

git config --global diff.external ~/bin/git-diff-cmd.sh

我不再想使用FileMerge了,我该如何返回到之前的默认设置?

1个回答

11

使用--unset从man页面:

--unset
    Remove the line matching the key from config file.

我曾尝试过 git config --unset diff.external,但仍然感到 FileMerge 带来的痛苦。 - William Entriken
1
你执行了 git config --global --unset diff.external 命令吗? - Collin

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接