To checkout a Pull Request locally, add the following line to your .git/config
file under the remote name for which you would like to checkout PRs.
fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*
No need to delete or alter any other lines in the file, just add it under the remote name.
Example:
[remote "upstream"]