Github downstream pull request?

前端 未结 2 348
面向向阳花
面向向阳花 2021-01-12 05:11

I have a project up on github, which an organization on github has forked. Can i push my code downstream to the organization\'s fork? I tried doing it, but was not able to.

相关标签:
2条回答
  • 2021-01-12 05:47

    You can fork their fork of your repository and add that in as another remote on your repo. Then you can send a pull request to them.h You may need to add another user and add a different .ssh/config entry to provide a different public key. Sounds cool! :)

    0 讨论(0)
  • 2021-01-12 06:11

    GitHub does allow this, and it's actually pretty easy to do, although I didn't find it very clearly-documented.

    The short of it, is that when you navigate on Pull Requests > New Pull Request from the GitHub UI, you get taken to the "Compare" page. In the drop down to the left you can select your own branches, OR you can type in a branch on another user's repo (including downstream, or peers) in the form "username:branchname". So (using names from GitHub's examples) if user hubot wanted to submit a Pull Request to downstream user octocat, they would enter "octocat:master" on the left and keep "hubot:master" on the right.

    Once the names on the left and right are entered, you'll be presented with the option to "Click here to create a pull request from this comparison." Voila! Downstream pull request!

    0 讨论(0)
提交回复
热议问题