在GitHub上添加提交给其他人的pull请求 [英] Adding commits to another person's pull request on GitHub

查看:148
本文介绍了在GitHub上添加提交给其他人的pull请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GitHub上的项目已收到



如果选中该框,那么您可以回到原来的分支,而不需要添加远程:

  git push git@github.com:user / repo local_branch_name:remote_branch_name 

如果您使用的工具如 hub ,你可以在这里检出一个拉取请求而不需要添加远程。


My project on GitHub has received a pull request. The pull request only partly fixes the issue that it's addressing. I've pulled in the changes to a local branch and added some commits of my own.

I'd now like to push those commits back to my remote repo and have them show up on the pull request, but without merging them into the target branch. I'd like to keep the pull request open for further review and discussion, and potentially further commits.

Is there a way I can add commits to the pull request without merging them into the target branch and therefore closing the pull request?

解决方案

As long as the original author has clicked the checkbox in the bottom right:

If that box is checked, then you can push back to the original branch without needing to add a remote by using:

git push git@github.com:user/repo local_branch_name:remote_branch_name

This is particularly useful if you're using a tool like hub where you can check out a pull request without needing to add a remote.

这篇关于在GitHub上添加提交给其他人的pull请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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