简体   繁体   English

获取、拉取、合并或推送对 GitHub 的更改 gitbash 给出 {git: 'credential-cache' is not a git command。 请参阅“git — 帮助”。}

[英]Fetch, pull, merge or push a change to GitHub gitbash gives {git: 'credential-cache' is not a git command. See 'git — help'.}

This error这个错误

git: 'credential-cache' is not a git command. git:“凭据缓存”不是 git 命令。 See 'git --help'.请参阅“git --help”。

is showing every time I try to interact with GitHub:每次我尝试与 GitHub 交互时都会显示:
每次我尝试与 github 交互时都会显示此错误({git:'credential-cache' 不是 git 命令。请参阅 'git --help'。})

In order to get out of the pain of typing my GitHub idname & password each time I fetch, pull, merge and push changes to the GitHub, I thought of using the为了摆脱每次获取、拉取、合并和推送对 GitHub 的更改时输入 GitHub idname 和密码的痛苦,我想到了使用
git config --global credential.helper cache command to store the idname & password. git config --global credential.helper cache命令用于存储 idname 和密码。 After using it I learned that, as I'm using Windows, I had to use manager instead of cache to do the same task.使用它后,我了解到,由于我使用的是 Windows,因此我必须使用manager而不是cache来执行相同的任务。 However, the above error message is showing each time I try to interact with GitHub.但是,每次我尝试与 GitHub 交互时,都会显示上述错误消息。

I have never used a credential helper.我从未使用过凭证助手。 But, I think it would require you to install a third-party tool to get it working.但是,我认为它需要您安装第三方工具才能使其正常工作。


As a recommendation, I would tell you to use ssh keys cite^ instead of a third-party tool, you are more secure this way.作为建议,我会告诉您使用 ssh 密钥cite^而不是第三方工具,这样您会更安全。 Even more secure if you use a passphrase along with ssh-agent cite^ .如果您将密码短语与 ssh-agent cite^一起使用,则更加安全。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM