【发布时间】:2016-03-19 20:35:07
【问题描述】:
我正在尝试创建一个 github 存储库,一组 4 位用户可以同时在该存储库上工作,而不必为每次推送提出拉取请求或在每次进行更改时进行分叉。
但是,当不是创建者(我)的任何人添加远程 URL 并尝试推送到主分支时,它会拒绝用户访问,即使用户作为贡献者添加到 github 页面上也是如此。
为了解决这个问题,我告诉其中一位用户 fork 存储库并将我添加为贡献者,以便我可以尝试推送新的更改,但我遇到了同样的问题。
我在 Git Bash 中做了以下操作:
$ git clone https://github.com/Diseasedfire/AlaBonteKoe.git
Cloning into 'AlaBonteKoe'...
remote: Counting objects: 3027, done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 3027 (delta 27), reused 0 (delta 0), pack-reused 2955
Receiving objects: 100% (3027/3027), 37.23 MiB | 588.00 KiB/s, done.
Resolving deltas: 100% (494/494), done.
Checking connectivity... done.
$ vim README.MD
(I make edits to the readme)
$ git commit -a -m "test remote commit"
[master 318b667] test remote commit
1 file changed, 1 insertion(+)
$ git remote add origin https://github.com/nebbii/AlaBonteKoe.git
fatal: remote origin already exists.
$ git remote -v
origin https://github.com/Diseasedfire/AlaBonteKoe.git (fetch)
origin https://github.com/Diseasedfire/AlaBonteKoe.git (push)
$ git push origin master
remote: Permission to Diseasedfire/AlaBonteKoe.git denied to nebbii.
fatal: unable to access 'https://github.com/Diseasedfire/AlaBonteKoe.git/':
The requested URL returned error: 403
是否可以作为列出的贡献者将更改推送到存储库而无需创建拉取请求?
【问题讨论】:
标签: git github git-bash git-remote