...
Since pull-requests are used when offering patches for code review, if you are performing a code review, this is one way that you can configuration Git to simply simplify the process.
At the top-level of the pertinent project directory, change your ".git/config" file as follows (notice addition of line:5)
Code Block title Example from the "fcrepo4" project linenumbers true ... [remote "origin"] url = https://github.com/fcrepo4/fcrepo4.git fetch = +refs/heads/*:refs/remotes/origin/* fetch = +refs/pull/*/head:refs/remotes/origin/pull/* ...
Refresh your local cache
No Format git checkout master git pull
Checkout the pull-request branch for review
No Format git checkout --track origin pull/xxx
- Enjoy the review
...