git ------- fatal: Authentication failed for ‘http://XXXX‘ 的这种错误 的解决办法

1.

查看自己的账户名与密码

$ git config --global user.name

$ git config --global user.email

没有的话就添加

然后修改账户名与密码

$ git config --global user.name “gxl"

$ git config --global user.email "[email protected]

 

2.修改过之后还报错 是因为你的电脑--”凭据管理器“--的”windows 凭据“  进行编辑修改即可:

git ------- fatal: Authentication failed for ‘http://XXXX‘ 的这种错误 的解决办法