How can you add commits to a github pull request of another person to your repo if you can't commit to their branch?

前端 未结 3 559
粉色の甜心
粉色の甜心 2020-12-25 11:22

Here\'s the scenario:

I have a public repo A. Bob forks A, adds a few commits to Bob/master and submits a pul

3条回答
  •  星月不相逢
    2020-12-25 11:47

    There are a number of workflows you can use here. Some examples are:

    1. Comment on the pull request, and have Bob make some changes. See Pull Request Discussion for more info.

    2. Merge the pull request onto a different branch, then make your changes before merging to master. You need to do this from the command line; see Merging a Pull Request for step-by-step instructions.

    3. Edit the patch before applying it with git am. See Patch and Apply. This is probably the most flexible option, but also the most manual.

      git checkout master
      curl http://github.com///pull/.patch
      sensible-editor 
      git am 
      git push origin master
      

提交回复
热议问题