在我没有的GitHub项目中添加别人的pull请求 [英] Adding to someone else’s pull request on a GitHub project that I do not own

查看:123
本文介绍了在我没有的GitHub项目中添加别人的pull请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能向我不是所有者的存储库上的其他人的拉取请求添加提交?

例如

用户A拥有项目X.



用户B分出项目X,创建一个功能分支,进行一些更改,并提交一个拉取请求。



用户C喜欢拉取请求,但想对其进行一些修改。 (FWIW用户C已经有了一个Project X的分支,所以无法轻松分叉用户B的分支)。

用户C是否可以向用户B的PR添加提交?

除非您对User B的fork有写访问权限,否则不能直接向User B的pull-request添加提交。然而,您可以通过将拉取请求分支提取到您自己的本地回购库中(假设B的分支的URL是公开的),从而在本地添加拉取请求。



不过,我不确定是否可以对B的叉子进行拉取请求,因为你自己的叉子来自A而不是B。


Is it possible for me to add commits to someone else’s pull request on a repository where I am not the owner?

e.g.

User A owns Project X.

User B forks Project X, creates a feature branch, makes some changes, and submits a pull request.

User C likes the pull request, but would like to make some modifications to it. (FWIW User C already has a fork of Project X, so is unable to easily fork User B’s fork).

Can User C add commits to User B’s PR?

解决方案

You cannot add commits directly to User B's pull-request unless you have write access to User B's fork. You can, however, make local additions to the pull-request, by just fetching the pull-request branch into your own local repo (assuming the url for B's fork is public).

I'm not sure if it's possible to do a pull-request into B's fork since your own fork is from A and not B, though.

这篇关于在我没有的GitHub项目中添加别人的pull请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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