How to accept pull request and update your master branch on github
If you have a project on github, probably you receive many pull request to update your project.
To test the new branch, just write:
git fetch origin pull/1/head:branch_name
where 1 is the pull request number
To push the new files, just write:
git push origin branch_name
If you want copy this branch to the master, just write:
git push -f origin branch_name:master
For more information, visit https://help.github.com/articles/checking-out-pull-requests-locally/
To test the new branch, just write:
git fetch origin pull/1/head:branch_name
where 1 is the pull request number
To push the new files, just write:
git push origin branch_name
If you want copy this branch to the master, just write:
git push -f origin branch_name:master
For more information, visit https://help.github.com/articles/checking-out-pull-requests-locally/
Comments
Post a Comment