git error: git remote: HTTP Basic: Access denied
问题原因: 可能是刚改过远程仓库密码,造成本地git配置的用户名、密码与gitlab上注册的用户名、密码不一致。
1、解决方法一:
跟着图示步骤走
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210512154140866.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210512154726297.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1N1bmRheTk3,size_16,color_FFFFFF,t_70)
然后继续使用soucetree 会弹窗 提示输入用户名密码 就好了
2、解决方法二:
git config –system –unset credential.helper
- 用了第一个命令 还不能解决问题时,再输入以下命令:
git config –global http.emptyAuth true