【问题标题】:Remove git: 'credential-manager' is not a git command. From Mac删除 git:'credential-manager' 不是 git 命令。来自 Mac
【发布时间】: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 macos


    【解决方案1】:

    您已指定凭据帮助程序 manager,这在 macOS 上不可用,这就是您看到此消息的原因。 Git 的大多数 macOS 发行版默认为osxkeychain,这是正确的选择。

    要解决这个问题,你可以运行这个:

    $ git config --global --unset credential.helper
    

    如果您随后运行git config credential.helper,您可以查看是否有osxkeychain 的设置,如果没有,请添加一个带有原始命令变体的设置。

    【讨论】:

      猜你喜欢
      • 2022-07-06
      • 2023-03-20
      • 2012-11-19
      • 1970-01-01
      • 2017-01-23
      • 2018-10-29
      • 2012-10-14
      • 1970-01-01
      • 2022-08-23
      相关资源
      最近更新 更多