How do I push to a pull request on github?

后端 未结 4 911
我寻月下人不归
我寻月下人不归 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:35

    A Pull Request is just a request to merge a certain branch. This means commits made to the branch after the pull request is opened will be included in the eventual merge.

    If you have access to the branch that the pull request is asking to merge, you can commit to that branch and the pull request will update with the changes.

    Example:

    pull/3 is requesting to merge hotfix into master

    git fetch
    git checkout hotfix
    git pull origin hotfix
    

    make changes

    git add .
    git commit -m "changes!"
    git push origin hotfix
    

    Now your commit will show up in the pull request.

提交回复
热议问题