Skip to content

How to use the feature branch of someone else's pull request

Johannes Sahlmann edited this page Mar 27, 2019 · 2 revisions

When reviewing pull requests, it can be helpful or necessary to run the respective feature branch. One way to accomplish that is to add the contributor's fork as a remote repository, fetch the branch, and then check it out locally:

git remote add coworker https://github.com/coworker/pysiaf.git

git fetch coworker

git checkout --track coworker/branchname

(see https://stackoverflow.com/questions/5884784/how-to-pull-remote-branch-from-somebody-elses-repo)

Note that the same can easily be accomplished with a few clicks using git clients like sourcetree as well.

Clone this wiki locally