Я хочу отправить свой первый запрос на GitHub, и я затрудняюсь с этим.HTTP 403 на запрос GitHub pull
Согласно this article Я должен сначала создать ветку. Так что:
git clone https://github.com/theuser/therepo.git
git branch mybranch
git checkout mybranch
- сделать мои изменения
git commit -a -m "Closes theuser/therepo/#100"
Мое мышление здесь (пожалуйста, поправьте меня, если это не так) было клонировать репо, сделайте ветвь и зафиксируйте изменения этой ветви.
Если я правильно прочитал эту статью (связанный выше), то следующее, что мне нужно сделать, это нажать ветку, чтобы я мог перейти к шагу # 2 (В меню «Ветка» выберите ветку который содержит ваши фиксации.).
Так я делаю git push
и я получаю:
D:\workspace\therepo>git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.
In Git 2.0, Git will default to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Username for 'https://github.com': myuser
Password for 'https://[email protected]':
remote: Permission to theuser/therepo.git denied to myuser.
fatal: unable to access 'https://github.com/theuser/therepo.git/': The
requested URL returned error: 403
Я не могу сказать, что здесь происходит? Является первым предупреждением/ошибкой (жалуются на push.default
), вызывая вторую ошибку (HTTP 403), или они разделены? Неправильно ли моя стратегия (нажатие ветки)? Я весьма озадачен.
Спасибо @Steven Fisher (+1) однако я не вижу, что стратегия, перечисленная в этой статье GitHub, я смотрю на старую статью? Думаю, мне просто сложно поверить в то, что просто не было бы в официальном учебнике GitHub для участия в OSS ... – smeeb
Я не знаю. Эти инструкции будут работать, если вы были частью команды, уполномоченной выполнять обязательства в этом проекте. Я уже отправил им обратную связь с просьбой исправить эту статью. (Ссылка на ваш вопрос здесь!) Я добавлю ссылку на другую статью, которая может прояснить ситуацию. –
Там, эта ссылка должна помочь. –