首页 > 解决方案 > git: 'credential-chache' 不是 git 命令。见'git --help'

问题描述

我只是想摆脱这个错误信息。经过多次尝试使用保存我的凭据

`git config --global credential.helper cache` 

和别的

credential.helper

方法,我决定使用

`ssh keypair authentication`

自动登录到我的 GitHub 帐户。我成功生成 ssh 密钥并将其添加到我的 GitHub 帐户,但是每当我使用

`git pull`

或者

`git push`

或任何与 github 服务器交互的命令

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

被不必要地打印,尽管这些命令在不询问用户名或密码的情况下成功运行。

有什么办法可以摆脱这个消息?

标签: gitgithubgithub-for-windowsgithub-for-mac

解决方案


推荐阅读