Send a pull request on GitHub for only latest commit

后端 未结 7 1465
一整个雨季
一整个雨季 2020-11-29 14:45

I forked a project on github and am successfully making changes to my local master and pushing to origin on github. I want to send a pull request, but only want to include t

7条回答
  •  时光取名叫无心
    2020-11-29 14:58

    This almost worked for me:

    git checkout -b upstream upstream/master
    
    git cherry-pick 
    
    git push origin upstream
    

    The only difference was this:

    git push origin upstream:upstream
    

    I needed to change that last line so that git push would make the upstream branch in my GitHub repo so that I could make PR from it.

提交回复
热议问题