简体   繁体   English

如何向分叉仓库发送拉取请求

[英]How to send a pull request to a forked repo

i'm new to github (just moved from svn) and faced following issue. 我是github的新手(刚刚从svn移出)并面临以下问题。

  1. There's a main git repo named A.(There are lots of Head developers sending PRs to this repo) 有一个名为A的主要git存储库。(很多Head开发人员将PR发送到此存储库)
  2. Head developer B forked repo A. His forked repo is named C.(There are lots of developers sending PRs to this repo as well) 首席开发人员B分叉的存储库A。他的分叉存储库称为C。(很多开发人员也向该存储库发送PR)
  3. Developer1 forked from A. Developer1从A分叉。
  4. Developer2 forked from head developer's repo C. Developer2从首席开发人员的仓库C分叉。

After a while, developer1 have to send a Pull Request to head developer's repo (C) including all the changes done by developer2. 一段时间后,developer1必须发送一个Pull Request到开发人员的仓库(C)头,其中包括developer2所做的所有更改。

In this scenario i'm the developer1 :) . 在这种情况下,我是developer1 :)。 and so far i got all the changes done by developer2 without a issue. 到目前为止,我已经完成了所有developer2所做的更改,没有任何问题。 But I can not rebase with C since i forked the parent git repo A. 但是由于我分叉了父级git repo A,所以我无法使用C进行基准化。

I can not even fork C since i have already forked A(parent of C). 我什至不能叉C,因为我已经叉了A(C的父母)。 Can someone please tell me how to send a Pull Request to C correctly in this scenario. 有人可以告诉我在这种情况下如何正确向C发送请求请求。

Thanks in advance. 提前致谢。

I think you may need to add the repo you're trying to contribute to as an upstream master and pull that first before pushing back your pull request. 我认为您可能需要添加要尝试作为上游主服务器回购的回购协议,并在回拉请求之前先将其回撤。 - Config a remote for a fork ..and then.. - Sync your fork - 为分叉配置一个遥控器 ..然后-。 同步您的分叉

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

相关问题 没有派生回购请求 - No Pull Request to forked Repo 如何从forked repo更新pull请求? - How to update a pull request from forked repo? 如何解决来自派生回购请求请求的合并冲突 - How to resolve merge conflicts on pull request from forked repo 如何在 github 上的拉取请求中同步分叉存储库和提交? - How to sync forked repo with commits in the Pull Request on github? 当合并请求来自派生仓库时,如何合并合并请求冲突? - How to merge pull request conflicts when pull request is from a forked repo? 如何恢复合并到我分叉的仓库的拉取请求,而不是合并到我的该仓库副本 - How to revert a pull request that was merged to repo I forked from, instead being merged to my copy of that repo 如何从我分叉的repo中提取代码? - How to pull code from the repo I forked? 如何针对派生仓库中两个分支之间的差异的上游基础创建拉取请求? - How do I create a pull request against an upstream base that is the difference between two branches in my forked repo? GitHub:如何从forked存储库创建pull请求到上游repo只包括一些过去的提交 - GitHub: How to create pull request from forked repository to upstream repo only including some past commits 是否可以接受来自克隆/分叉回购的拉取请求? - Is it possible to accept pull request from a cloned/forked repo?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM