[英]Where Is This Git Setting Coming From?
我试图找到每个credential.helper值的设置位置。
我列出了我的所有配置并过滤了我正在寻找的值,看起来正在设置两个冲突的值。 我想保留超时版本并删除钥匙串版本
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
那么钥匙串版本来自哪里以及如何删除它?
您可以运行git config -l --show-origin
以显示每个设置的设置位置。 osxkeychain
助手在 Homebrew 的 Git 上默认启用,但可以禁用。 我不知道它是否已启用,如果可以,是否可以在 Apple 的 Git 上禁用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.