如何解决“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/