git clone失败,提示Authentication failed

既然提示身份验证失败。

1.首先检查user name 和 user email ,输入git config --list查看,如果不对就重新配置

git clone失败,提示Authentication failed

git config --global user.name [username]  如:git config --global user.name huangdd

git config --global user.email [email]         如:it config --global user.email [email protected]

2.如果没问题,考虑电脑存的账号密码还是旧的。(windows10会出现,window7不会)

git clone失败,提示Authentication failed

去控制面板的凭据管理器中找到windows凭据,将git的密码更新一下

 

一般能完美解决问题。