首页 > 解决方案 > Windows 密码已更改,不再能够使用 Git。控制面板中没有凭据管理器

问题描述

基本上,标题所说的。我需要更改我的 Windows 密码,现在当我尝试使用 git clone 时出现身份验证错误:

fatal: Authentication failed for '<git repo here>'

到目前为止,我已经尝试了以下方法:

git config --global --add user.password "password here"
git config --global --unset user.password
git config --global credential.helper wincred

没有明显的变化。我还尝试重新启动 git bash、Intellij 和我的计算机。我的大部分搜索都归结为“在控制面板中使用凭据管理器”,但我的本地计算机上似乎没有它。

标签: gitauthenticationgit-clonechange-password

解决方案


运行以下命令以在全局级别上设置配置。

git config --global credential.helper manager

推荐阅读