Adding commits to another person's pull request on GitHub

前端 未结 4 1181
执笔经年
执笔经年 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:59

    I use the new gh cli tool.

    gh pr checkout PR_NUMBER
    

    Then make your changes and as long as you have access to push to their fork (which from my experience is usually the case if you own the primary repo). With using the gh tool, it will basically copy their branch's name so you can do.

    git push git@github.com:other_user/repo branch:branch
    

提交回复
热议问题