【发布时间】:2021-11-01 15:20:26
【问题描述】:
我在 Git 上运行了以下命令:
git config --global credential.helper manager
现在在执行 git push 时出现错误
git: 'credential-manager' is not a git command. See 'git --help'.
我怎样才能删除它?
【问题讨论】:
我在 Git 上运行了以下命令:
git config --global credential.helper manager
现在在执行 git push 时出现错误
git: 'credential-manager' is not a git command. See 'git --help'.
我怎样才能删除它?
【问题讨论】:
您已指定凭据帮助程序 manager,这在 macOS 上不可用,这就是您看到此消息的原因。 Git 的大多数 macOS 发行版默认为osxkeychain,这是正确的选择。
要解决这个问题,你可以运行这个:
$ git config --global --unset credential.helper
如果您随后运行git config credential.helper,您可以查看是否有osxkeychain 的设置,如果没有,请添加一个带有原始命令变体的设置。
【讨论】: