如何解决git: 'credential-manager' 不是 git 命令
我有一台运行 Ubuntu 18.04.3 LTS 的服务器。我想保存我的 git 凭据,所以我不必每次都输入它们。我运行以下命令:
git config --global credential.helper store
然后我 git pull
并得到:
user@host:~/project$ git pull
git: 'credential-manager' is not a git command. See 'git --help'.
usage: git credential-store [<options>] <action>
--file <path> fetch and store credentials in <path>
Username for 'https://gitlab.com':
我已经多次重复相同的过程,使用以下命令取消设置 credential.helper
选项:
git config --global --unset credential.helper
解决方法
documentation 显示命令
$ git config --global credential.helper 'store --file ~/.my-credentials'
因此,git
似乎很可能只是执行 credential.helper
中设置的命令。 you 设置的命令只是 store
... 这需要一个强制性参数 ... 您尚未提供。
这解释了为什么 store
命令(实际上是 git credential-store
)没有按预期工作。
我不知道关于 credential-manager
的抱怨来自哪里 - 很可能只是将所有失败状态错误地报告为“不是 git 命令”。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。