Git clone Access denied Authentication failed

git拉取项目、git push的时候提示没有权限:Access denied Authentication failed

Git clone Access denied Authentication failed

 

网上看了一下,估计是第一次输入账号密码的时候输入错误,但是问题是git把错误的账号密码进行了缓存,第二次输入的时候git没有再提示输入账号密码,逐个试了以下方案:

一、git config --system --unset credential.helper

出现以下错误提示,显示我没有权限,无果

error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied

二、打开控制面板》所有控制面板项》凭据管理器,删除相应的凭证

Git clone Access denied Authentication failed

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

三、简单粗暴,直接卸载git,删除program Files\Git,简单快捷,比网上到处找方案节省不少时间

Git clone Access denied Authentication failed