git - Git push 使用了错误的凭据
问题描述
我只是git clone
我的存储库之一:
git clone https://github.com/org/repo.git
cd repo
vi ...
git commit -am "things"
git push
remote: Permission to org/repo.git denied to nowox.
fatal: unable to access 'https://github.com/org/repo.git/':
The requested
URL returned error: 403
奇怪的是我没有nowox
在这台电脑上配置这个用户。证明是:
git config --list | grep nowox
同样在这个存储库中我找不到nowox
grep -r nowox
任何想法?
解决方案
检查你的git config credential.helper
输出
如果助手缓存了错误的凭证,强制它再次询问您所说的凭证(如“我如何在 Git Bash 控制台中注销? ”中所述)
git credential-manager reject https://github.com