Adding commits to another person's pull request on GitHub

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

    It is possible to do this now (link)

    Suppose you have received a pull request in yourrepo from otheruser.

    Add the other user as a remote

    git remote add otheruser https://github.com/otheruser/yourrepo.git
    

    Fetch

    git fetch otheruser
    

    Create a branch from their repo

    git checkout -b otheruser-master otheruser/master 
    

    Now make some changes and commit. Push to their repo

    git push otheruser HEAD:master
    

提交回复
热议问题