git push报错"fatal: Authentication failed for 'https: //***' "

git push报错"fatal: Authentication failed for ‘https: //***’ "

问题描述:

在这里插入图片描述
或者,SSH提交报错如下: (推代码时候报错"Access Denied" 拒绝访问)
在这里插入图片描述

解决办法:

 git config --system --unset credential.helper   // 执行此命令会在git push时候输入用户名和密码

执行此命令会在git push时候输入用户名和密码,如果输入正确就能提交代码
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Calla_Lj/article/details/86249210