git: 'credential-wincred' 不是 git 命令。见 'git --help' 。在 Mac 上

标签 git gitlab

如何解决“MacBook pro”上的此错误。

git: 'credential-wincred' is not a git command. See 'git --help'.

git: 'credential-wincred' is not a git command. See 'git --help'.

remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab01.xxxxx.com.tw/xxxxx/xxxxxxx.git/'



我使用“git config --system --unset credential.helper”和“git config --global credential.helper wincred
“,对我没有任何作用。
谢谢。

最佳答案

问题是您正在尝试使用 wincred凭据助手,仅在 Windows 上可用,在 macOS 上。你提到你已经运行了git config --global credential.helper wincred ,它将凭证助手设置为 wincred .当 Git 尝试调用它时,它会失败,因为它不可用。

相反,您应该运行 git config --unset-all credential.helper并运行 git config --global credential.helper osxkeychain .这将导致您使用 macOS 钥匙串(keychain)来存储凭据,这将在 macOS 上运行。

关于git: 'credential-wincred' 不是 git 命令。见 'git --help' 。在 Mac 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54897023/

相关文章:

git - 对 git 中的相同文件应用多个过滤器

java - 如何在现有项目中激活 GitLab Pages?

linux - 致命: could not read Username for 'https://gitlab.com' : No such device or address on gitlab

git ssh无法访问docker容器中的gitlab

git - 使用 git merge 两个具有共同父级的目录(但 SHA1 不同)

git - 在没有git的情况下将git存储库与服务器同步

来自 WSL 的 git ssh 无法连接到我们公司的私有(private)内部 git 主机

jenkins - 客户端错误 : HTTP 302 Found, Jenkins 连接到 Gitlab

Gitlab include yml - 访问被拒绝

用于添加、提交和推送到正确分支的 Git 命令