环境
- Windows_10 专业版 1809
- Git version 2.21.0
问题描述
$ git fetch
git remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://xxx.xxx/xxx.git
解决方案
- 如果账号密码有变动
git config –system –unset credential.helper
重新输入账号密码 应该就能解决了
2. 如果用了第一个命令 还不能解决问题那么 用这个命令:
git config –global http.emptyAuth true
- 如果以上都不行
(完)