我试图将一个新的repo推送到github,并且被阻止这样做,因为git已经缓存了meatwork
凭据。OSX:git:remote:用户/ repo被其他用户拒绝的权限
$ git push -u origin master
remote: Permission to me/me.github.io.git denied to meatwork.
经过一番周围挖,我想也许是credential.helper这个问题,所以我试图删除它咬混帐配置仍然返回osxkeychain虽然我已删除所有设置。
$ git config --system credential.helper
$ git config --global credential.helper
$ git config --local credential.helper
$ git config credential.helper
osxkeychain
$
还考察了混帐凭据osxkeychain但它只是挂起
$ git credential-osxkeychain get
所以无论如何回到原来的问题,我怎么指定或覆盖或重新设置默认的用户正在使用的推动。我检查了user.name
和user.email
设置,将它们设置为正确的用户(不meatwork
)。
$ git config --local user.name
$ git config --global user.name
me
$ git config --system user.name
$ git config --local user.email
$ git config --global user.email
[email protected]
$ git config --system user.email
那么,git得到meatwork
凭证,以及如何阻止它。
我会检查是否有任何其他SSH密钥在您的SSH代理:'SSH-添加-L' – dorian
代理没有身份。 –