Adding commits to another person's pull request on GitHub

前端 未结 4 1174
执笔经年
执笔经年 2021-01-30 13:14

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 som

4条回答
  •  执笔经年
    2021-01-30 13:52

    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.

提交回复
热议问题