git pull 中的密码错误 - 重新提示密码?

Wrong password in git pull - re-prompt password?

我已经为我在我的项目中使用的私钥设置了一个密码:

git pull

git 提示我输入密码,我不小心输入了错误的密码和 +1 个不需要的字符,当我再次尝试 git pull 时,CLI 说:

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

如何重新提示 git pull所以我会再问我密码?

尝试以下命令,

git credential-cache exit

如果您想减少记住密码的超时时间,请使用这个,

git config --global credential.helper "cache --timeout=3600" //in milli seconds

阅读this link了解更多详情..