Git系列之 Authentication failed

问题

这个问题,往往发生在修改密码之后。
虽然git认证方式不记录密码,如:

git config --global user.name “wangdy”
git config --global user.email “[email protected]

但是修改密码后,就会出现这个问题:

fatal: Authentication failed for

解决方案(window)

  1. 使用以下命令查看git当前配置:

git config --list

确认user.name 和 user.email无误后,继续。

  1. 修改凭证
    2.1 打开 控制面板
    2.2 打开用户账户
    2.3 打开 管理windows凭据Git系列之 Authentication failed
    Git系列之 Authentication failed
    2.4 在普通凭据 中找到git 的凭据,然后编辑密码即可,也可以删除,使用git的时候再重设user.name 和user.email