如何解决“ MacBook Pro”上的此错误。
git:'credential-wincred'不是git命令。参见'git --help'。
git:'credential-wincred'不是git命令。参见'git --help'。
远程:HTTP基本:拒绝访问致命的:身份验证失败“ https://gitlab01.xxxxx.com.tw/xxxxx/xxxxxxx.git/ ”
我使用“ git config --system --unset credential.helper”和“ git config --global credential.helper wincred”,对我来说什么都不起作用。谢谢。
Pau*_*Dyk 10
我在使用 WSL 和 ubuntu 的 Windows 上遇到了同样的问题,我必须git config --global --unset-all credential.helper删除该值,如果没有 --global 标记,--unset-all 不会执行任何操作。
问题是您正在尝试使用wincred凭据助手,该助手仅在Windows上的macOS上可用。您提到您已经运行git config --global credential.helper wincred,它将凭据帮助程序设置为wincred。当Git尝试调用它时,它会失败,因为它不可用。
相反,您应该运行git config --unset-all credential.helper并运行git config --global credential.helper osxkeychain。这将导致您使用macOS钥匙串来存储凭据,这将在macOS上运行。
| 归档时间: |
|
| 查看次数: |
1789 次 |
| 最近记录: |