简体   繁体   English

Github分支的拉取请求

[英]Github pull request of a branch

I have forked a master from upstream. 我从上游派出了一位大师。 I have created a branch, made some commits, and now want to issue a pull request. 我创建了一个分支,进行了一些提交,现在想发出一个拉取请求。 I want to know when my branch is merged by the user, will it get merged to the upstream master, or the user will have an option to create a new branch and merge my branch with it? 我想知道用户何时合并我的分支,它将被合并到上游主服务器,还是用户可以选择创建一个新分支并与之合并我的分支? Btw, I don't have push permission. 顺便说一句,我没有推送许可。

Where the Pull Request merges depends on how you create it, when you pick four things: 当您选择四件事时,合并请求的位置取决于您如何创建它:

  • The base fork: Which fork of the repository the PR will be merged into 基本分支:PR将合并到存储库的哪个分支中
  • The base branch: Which branch in that repository the PR will be merged into 基本分支:PR将合并到该存储库中的哪个分支
  • The compare fork: The fork with thew new code 比较叉子:带有新代码的叉子
  • The compare branch: The branch containing the new code 比较分支:包含新代码的分支

So if you configure the base to be upstream_repo:master , yes, when the PR is accepted, it will be merged to master . 因此,如果将基础配置为upstream_repo:master ,是的,当接受PR时,它将合并到master

For more, see GitHub's help on Using Pull Requests . 有关更多信息,请参见GitHub关于使用拉取请求的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM