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/

Comments

Popular posts from this blog

How to fix Android when developer options are not available for this user

from: can't read /var/mail/ in Python scripts

Fix "Set scan parameters failed: Input/output error" on Ubuntu 16.04