[python-committers] Guide to pushing to submitters' repo?

Carol Willing willingc at gmail.com
Thu May 25 11:52:29 EDT 2017



> On May 25, 2017, at 7:41 AM, Antoine Pitrou <antoine at python.org> wrote:
> 
> 
> Le 25/05/2017 à 16:05, Zachary Ware a écrit :
>> 
>> Unfortunately, GitHub does not allow pushing back to refs/pull/*.  To
>> get it to set you up to push back to the contributor's repo, you'd
>> need to provide the contributor's name and branch name, which is much
>> less convenient if you're just looking to try out a patch locally
>> without intending to push anything back.  If I can figure out a good
>> second alias for that, I'll be sure to share it.
> 
> If I knew how to do that, I certainly would :-)
> 
>> You may be interested in the `hub` tool, which has a command for
>> 'check out this PR and set up a remote for it' (though I can't
>> remember what it is at the moment).
> 
> Thanks for the pointer.  Unfortunately, it seems that it really wants to
> authenticate using username and password (even though browsing a public
> project):
> 
> $ hub checkout https://github.com/python/cpython/pull/1785
> github.com username: pitrou
> github.com password for pitrou (never stored): ^C

Antoine, do you have an SSH key stored within your GitHub account settings?

You would still use the same command for hub to checkout the pull request, but GitHub would stop nagging for username/password.

> 
> Regards
> 
> Antoine.
> _______________________________________________
> python-committers mailing list
> python-committers at python.org
> https://mail.python.org/mailman/listinfo/python-committers
> Code of Conduct: https://www.python.org/psf/codeofconduct/



More information about the python-committers mailing list