【发布时间】:2018-12-06 20:47:46
【问题描述】:
我正在尝试更新以下存储库https://github.com/ilyas-it83/CloudComparer
我克隆了它,对文件进行了一些更新,现在我尝试推送它以获取新的拉取请求。
我在我的 github 帐户上使用 2FA,所以在 stackoverflowing 之后我生成了访问密钥。
这是我的github版本
git version 2.19.1
这是我的本地 git 配置
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = https://wojciehm@github.com/ilyas-it83/CloudComparer.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[credential]
username = wojciehm
我尝试将 url 更改为 ssh://blah,但没有成功。
这是我收到的错误。
git push origin add-wojciech-marusiak
Password for 'https://wojciehm@github.com':
remote: Permission to ilyas-it83/CloudComparer.git denied to wojciehm.
fatal: unable to access 'https://wojciehm@github.com/ilyas-it83/CloudComparer.git/': The requested URL returned error: 403
【问题讨论】:
-
您可能没有创建自己的分叉,并且正在推动您不允许的项目(403)。从这里开始:guides.github.com/activities/forking
-
就是这样。像魅力一样工作。
标签: git github git-push github-for-mac