我正在尝试查找每个credential.helper值的设置位置。
我列出了所有配置,并根据我一直在寻找的值进行了过滤,似乎正在设置两个冲突的值。我想保留超时版本并删除keychain版本
Alexs-MacBook-Pro:tinker alexthomas$ git config --list |grep credential.helper
credential.helper=osxkeychain
credential.helper=cache --timeout=300
我查看了全局配置,但它不存在
Alexs-MacBook-Pro:tinker alexthomas$ git config --list --global |grep credential.helper
credential.helper=cache --timeout=300
我查看了本地配置,但不存在
Alexs-MacBook-Pro:tinker alexthomas$ git config --list --local |grep credential.helper
系统配置文件甚至不存在。
Alexs-MacBook-Pro:tinker alexthomas$ git config --list --system |grep credential.helper
fatal: unable to read config file '/etc/gitconfig': No such file or directory
所以keychain版本从哪里来,如何删除它?
您可以运行git config -l --show-origin
显示每个设置的位置。 osxkeychain
帮助程序默认在Homebrew的Git上启用,但可以禁用。我不知道是否在苹果的Git上启用了它,如果可以的话,是否可以禁用它。