git 解决授权失败的方法

git 提示  fatal: Authentication failed for 'http://***********‘’得解决方法

首先用 git config --list 查看一下

如果不对,用命令设置一下

git config --global user.name "xxxx"

git config --global user.email  "xxxx"

如果还不行,执行一下命令,重新输入用户名密码就可以了:

git config --system --unset credential.helper

原文地址:https://www.cnblogs.com/zhangmingcheng/p/10436462.html