title: How do I test a pull requests locally before merging from a forked version of my repo when I have different pull requests from different users
body: <p>Well, I am a bit new to git.</p>
  
  <p>I am working on a project with my team members, I created a git repo that has my source code. A team member makes a fork of my repo, makes some addition and then submits a pull request to my master branch.</p>
  
  <p>I want to test this code first before merging it into my master branch, he created a topical branch named "additional-changes" for the pull request and maybe deletes the branch after submitting the request.</p>
  
  <p>so I go this way</p>
  
  <pre><code>git checkout -b test origin/master
  </code></pre>
  
  <p>but I get errors.</p>
  
  <p>So do I need to add a remote for this team member's branch first before checking it out? I get errors like the branch does not exist.</p>
  
  <p>Please ignore my long stories and just give me a step by step procedure to handle a situation like this.</p>
  
  <p>Thanks</p>