Github下游拉请求? [英] Github downstream pull request?

查看:140
本文介绍了Github下游拉请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在github上有一个项目,github上的一个组织已经发布了这个项目。我可以将我的代码下游推送到组织的分支吗?我尝试过,但无法完成。

我想知道我是否可以向下游发送拉请求? >解决方案

GitHub确实允许这样做,而且其实很容易做到,尽管我没有发现它非常清晰 - 记录。



不足之处在于,当您在GitHub用户界面的合并请求>新建合并请求中导航时,会进入比较页面。在下拉菜单中,您可以选择您自己的分支机构,或者您可以以用户名:branchname的形式在另一个用户的回购机构(包括下游或同级)中输入分支机构。所以(使用GitHub示例中的名称),如果用户hubot想要向下游用户octocat提交Pull请求,他们将在左侧输入octocat:master,并在右侧输入hubot:master。

输入左侧和右侧的名称后,您将看到点击此处以根据此比较创建拉取请求选项。瞧!下游拉请求!

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.

I would like to know if i can send a pull request downstream?

解决方案

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!

这篇关于Github下游拉请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆