Instantly share code, notes, and snippets.
Save wtbarnes/56b942641d314522094d312bbaf33a81 to your computer and use it in GitHub Desktop.
Blaumaus commentedJul 25, 2022
Thank you for this tutorial.
edimetia3d commentedAug 1, 2022
The author of the PR also may need to explicitly allow you to push to their branch.
Another note:
- It seems only maintainer of
author/repo.gitcould push commit to contributor's branch. - As a contributor, you need to un-check the
Allow edits by maintainersbox in PR page to disable maintainer's pushing permission, and it is checked by default.
It bothered me for a while, because someone pushed code into my fork, I just feel somehow strange.
Anas-mhameed commentedDec 21, 2022
Thank you so much my friend
projectkepler-ru commentedApr 18, 2023
based
stephenwaite commentedJun 21, 2023
silverqx commentedJul 26, 2023
I thought that's how it works, but it still helped me a lot to get my bearings (orientate). Thx
kurtaking commentedJul 9, 2024
Still helped me out in 2024. Thanks 😄
jbw976 commentedOct 1, 2024
I've probably used this page like 15-20+ times by now - thank you very much! 🙇♂️
manio commentedDec 23, 2024
Update: it seems this is now outdated, because it is using an HTTPS URL likehttps://github.com/contributor_username/repo.git which was deprecated. Now we have to checkout and push in the SSH URL form like:git@github.com:contributor_username/repo.git
silverqx commentedDec 23, 2024
It's an example only, if you use https or git protocol is up to you, git needs more setup anyway. Is better to use https in examples to not confuse newbies.
manio commentedDec 23, 2024
@silverqx
Not exactly: GitHub is not allowing https anymore if you want to push. Doesn't matter if you are newbie or not :)
remote: Support for password authentication was removed on August 13, 2021.remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.fatal: Authentication failed for 'https://github.com/pavelkomarov/repo.git/'That's why I noticed it here because I struggled the same problem today so I thought that it might be worth to notify anyone who is following this "tutorial".
silverqx commentedDec 23, 2024
Really, I didn't know that, then in this case you are correct, should be updated.
kpfleming commentedApr 2, 2025
You can still push over HTTPS, you just have to use a Personal Access Token for authentication instead of a username/password combination. I do this all the time, it works fine.
