Git报错fatal:Authentication failed for‘https://git……解决方法

时间:2025-03-01 20:39:45

报错就是因为你输入的账号或者密码错误,导致验证失败。

方法一配置全局参数:

git config --global  “xxx”
git config --global  “xxx”

方法二:

git remote -v
git remote remove origin
git remote add origin xxx

方法三(可以解决):

git config --system --unset 

执行这个命令之后,你可以重新写入账号密码,这样就可以重新提交代码了。