简体   繁体   English

Github叉的工作流程

[英]Github Work Flow for Fork

What am I missing that is so blatantly obvious here? 我错过了什么在这里如此明显?

I want to contribute to a fork of a main project on github, however when I use the github UI to fork the repo it forks the main project and not the fork I want to contribute to. 我想在github上贡献一个主项目的fork,但是当我使用github UI来分叉repo时,它会分叉主项目,而不是我想要贡献的fork。

The reason I want to contribute to the fork is it uses a different billing system that is already configured so it doesn't make sense for me to fork the original project which uses the "other" payment system. 我想要为fork做出贡献的原因是它使用了一个已经配置的不同计费系统,因此对我来说分叉使用“其他”支付系统的原始项目是没有意义的。 In theory I want to- 理论上我想 -

However, when I attempt to use the UI to fork, it returns the fork of the original project (with non preferred pmt system). 但是,当我尝试使用UI进行分叉时,它会返回原始项目的分支(使用非首选的pmt系统)。 What am I missing here, I'm sure this happens all the time but searching around I haven't found the intended method of performing this. 我在这里错过了什么,我确信这种情况一直都在发生,但是我一直没有找到执行此操作的预期方法。

As I mentioned in this comment , you could just fork the main project at https://github.com/lockitron/selfstarter , then add siddarth's fork as a remote and fetch his branches. 正如我在本评论中提到的,您可以在https://github.com/lockitron/selfstarter上分叉主项目,然后将siddarth的fork添加为远程并获取其分支。 When you're done working on a branch based off of his changes, push the work to your own private fork. 当您根据他的更改完成分支工作时,将工作推送到您自己的私有分支。

I'm not sure if GitHub will let you send a pull request to siddarth's fork, but GitHub does have that feature at least for people working in organizations. 我不确定GitHub是否会让你向siddarth的分叉发送拉取请求,但GitHub确实拥有该功能,至少对于在组织中工作的人来说。

If it turns out that you can't send a pull request through GitHub directly to siddarth's fork, then you can do it manually using git request-pull and sending the output as an email to siddarth ( the process is explained in further detail in the Pro Git book ): 如果事实证明您无法通过GitHub直接向siddarth的fork发送拉取请求,那么您可以使用git request-pull手动执行此操作并将输出作为电子邮件发送到siddarth( 该过程将在Pro Git书 ):

git request-pull <start-commit> <url-of-your-remote-fork> > pull-request.txt

Also, you could just contact siddarth and ask him to check out the changes in your remote fork that way (he could just fetch them). 此外,您可以联系siddarth并要求他以这种方式查看远程分支中的更改(他可以获取它们)。

Of course, the disadvantage of not using GitHub's pull-request functionality is that you don't get the built-in code reviewing system attached to the pull-request. 当然,不使用GitHub的pull-request功能的缺点是你没有得到附加到pull-request的内置代码审查系统。

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

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