How do I push to a pull request on github?

后端 未结 4 909
我寻月下人不归
我寻月下人不归 2020-12-24 11:15

I\'ve added this to my .git/config file:

fetch = +refs/pull/*/head:refs/remotes/origin/pr/*

Which allows me to pull down pull

4条回答
  •  时光取名叫无心
    2020-12-24 11:45

    Here's are GitHub's "Merging via command line" instructions for pull requests (I am fulldecent, the other guy is ospr):

    Step 1: From your project repository, check out a new branch and test the changes.

    git checkout -b ospr-image-rendering master
    git pull https://github.com/ospr/FDWaveformView.git image-rendering
    

    Step 2: Merge the changes and update on GitHub.

    git checkout master
    git merge --no-ff ospr-image-rendering
    git push origin master
    

    Here is the additional step that sends your changes back upstream(?) to the PR originator.

    git push https://github.com/ospr/FDWaveformView.git ospr-image-rendering:image-rendering
    

提交回复
热议问题