本文介绍了GitHub:重新打开合并的拉取请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 我做了一些更改

  • 我提交了一个拉取请求

  • 拉取请求被接受并合并。

  • 我们发现了一个错误

  • b
    $ b

    我现在修复了这个错误,并希望重新提交一个额外的提交请求。有什么方法可以重新打开请求或更新它,或者我是否必须创建新的请求,再次输入说明等? Gitorious有此功能,我们最近已将其移至GitHub。 解决方案

答案似乎如下: t。



一旦合并并关闭了拉取请求,它将永久锁定并且无法重新打开。如果您的pull请求被合并,关闭,那么您的更改将被撤消(通过强制推回到合并之前),您将需要向分支添加提交并创建新的请求,复制所有细节并可能提供手动保存历史记录的链接。



可能是未来GitHub的一项不错的功能请求。


  • I made some changes
  • I submitted a pull request
  • The pull request was accepted and merged.
  • We found a bug
  • The changes were removed again whilst I fixed the bug.

I've now fixed the bug and want to resubmit the pull request with 1 extra commit. Is there any way to reopen the pull request or update it, or do I have to create a new pull request, type out the description etc again? Gitorious has this feature and we've recently moved to GitHub.

解决方案

The answer seems to be: You can't.

Once a pull request is merged and closed, it is locked forever and cannot be reopened. If your pull request is merged, closed, then your changes are pulled out (via force pushing backwards to before the merge), you will need to add commits to the branch and create a new pull request, copying all the details over and probably providing a link to the original pull request to manually save the history.

Might be a nice feature request for future GitHub.

这篇关于GitHub:重新打开合并的拉取请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 21:03