描述:

在服务器改了git的密码,本地更新或提交代码的时候失败,

提示

15:21    Update failed
        remote: HTTP Basic: Access denied
        Authentication failed for 'https:xxxx.git/'

解决办法:

在Android studio中的terminal中输入下面命令,之后再点击更新或提交代码时,便会提醒你重新输入账户密码

// 清空git的账户信息
git config --system --unset credential.helper

 

Tips:

git设置永久记住密码

git config --global credential.helper store
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐