如何取消 github 上的拉取请求?
如何取消 github 上的 Pull 请求?
How can a pull request on github be cancelled?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何取消 github 上的 Pull 请求?
How can a pull request on github be cancelled?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
关闭 Pull 请求的超级简单方法 - 最新!
原始存储库
。拉取请求
选项卡关闭拉取请求
按钮Super EASY way to close a Pull Request - LATEST!
Original Repository
where the pull request has been submitted to.Pull requests
tabClose Pull Request
button只需删除您为拉取请求创建的分支
just delete the branch you have crteated for pull request
我也有同样的问题。我所做的是
就这样。
I had the same problem. What I did is
That's all.
如果您已在 gitHub 上打开 PR,但尚未合并,并且您想摆脱它,而不仅仅是关闭,请执行以下简单命令:
If you have opened PR on gitHub, but it is not merged yet and you want to get rid off it, not just close, do this simple command:
转到“对话”选项卡,然后下来,有一个“关闭拉取请求”按钮,可以使用该按钮关闭拉取请求,请参考附图
Go to conversation tab then come down there is one "close pull request" button is there use that button to close pull request, Take ref of attached image
本着 DVCS 的精神(如“分布式”),您不会取消已发布的内容:
拉取请求本质上是您发送的补丁(通常通过电子邮件,这里是 GitHub webapp),并且您也不会取消电子邮件;)
但是由于 GitHub 拉取请求系统还包括一个讨论部分,因此您可以在那里向这些更改的接收者表达您的担忧,要求他/她忽略您 30 项提交中的 29 项。
最后,请记住:
话虽这么说,自 2011 年 1 月以来(“刷新 Pull 请求讨论” ),并在上面的答案中提到,您可以在评论中关闭拉取请求。
在讨论页面底部查找“评论并关闭”按钮:
In the spirit of a DVCS (as in "Distributed"), you don't cancel something you have published:
Pull requests are essentially patches you have send (normally by email, here by GitHub webapp), and you wouldn't cancel an email either ;)
But since the GitHub Pull Request system also includes a discussion section, that would be there that you could voice your concern to the recipient of those changes, asking him/her to disregards 29 of your 30 commits.
Finally, remember:
That being said, since January 2011 ("Refreshed Pull Request Discussions"), and mentioned in the answer above, you can close a pull request in the comments.
Look for that "Comment and Close" button at the bottom of the discussion page:
如果您在无权关闭的存储库上发送了拉取请求,则可以从拉取请求发起的位置删除分支。这将取消拉取请求。
If you sent a pull request on a repository where you don't have the rights to close it, you can delete the branch from where the pull request originated. That will cancel the pull request.
GitHub 现在支持 关闭拉取请求
基本上,您需要执行以下操作步骤:
示例(最底部的按钮):
这样拉取请求就会被关闭(并被忽略),而不需要合并它。
GitHub now supports closing a pull request
Basically, you need to do the following steps:
Example (button on the very bottom):
This way the pull request gets closed (and ignored), without merging it.