【问题标题】:remote: Permission to ... denied to远程:允许...拒绝
【发布时间】:2019-11-01 09:41:51
【问题描述】:

当我执行git push 时,我收到此错误:

$ git push -vv
Pushing to https://github.com/...
remote: Permission to ... denied to foobar.
fatal: unable to access 'https://github.com/...': The requested URL returned error: 403

我注意到foobar 用户不是我的用户:

$ git remote -v
origin  https://github.com/... (fetch)
origin  https://github.com/... (push)

我配置的github用户是别人:

$ git config github.user
ThisIsMe

$ git config --local github.user

还有我所在的 git 模块在 .git/modules/ext/config 中没有引用 foobar

有什么线索吗?

【问题讨论】:

标签: git push


【解决方案1】:

如果您使用的是 Windows,请转到:

控制面板 > 用户帐户 > 凭据管理器 > Windows 凭据 > 通用凭据

接下来删除 Github 密钥。 :)

【讨论】:

    猜你喜欢
    • 2015-05-13
    • 2012-04-14
    • 2014-09-03
    • 2014-10-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-02
    相关资源
    最近更新 更多