【发布时间】: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
有什么线索吗?
【问题讨论】:
-
我不认为你可以推送到 https,尝试通过 ssh URL 分叉并重试。