如何修改Github拉请求? [英] How to modify Github pull request?

查看:109
本文介绍了如何修改Github拉请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我向一个项目打开了拉取请求。维护者决定接受它,但告诉我修改一些内容。



我该怎么做?是否我应该保持提交哈希不变,我该怎么做? 只是推送更多的提交到分支的请求是为了。例如:

如果你想让b合并到master


  1. 您将c1,c2,c3推送至b

  2. ,然后对b

  3. 它会被审核并且您需要更多提交

  4. 您将c11,c21,c31推送到b

  5. 请求现在显示所有6个提交


I've opened a pull request to a project. The maintainer has decided to accept it, but told me to modify some contents.

How can I do it? Whether I should keep the commit hash unchanged, how can I do it?

解决方案

just push more commits on to the branch the request is for. The pull request will pick this up then

Example:

If you want to have b merged into master

  1. You push c1,c2,c3 to b
  2. then you make a new request for b
  3. it gets reviewed and you need more commits
  4. You push c11,c21,c31 to b
  5. The pull request now shows all 6 six commits

这篇关于如何修改Github拉请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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