title: How do you make a function for fetching remote pull requests from github with mac os x?
body: <p>How do you make a bash alias for fetching remote pull requests from github?</p>
  
  <p>The following bash call is used to pull pull-requests from github:</p>
  
  <pre><code>  git fetch [remote] pull/[number]/head:pr-[number]
  </code></pre>
  
  <p>Every time I manage a merge conflict I use this to get the pr into a local branch, manage the pr locally and push back up to the repository.  However, I constantly find myself looking up this call and manually inserting the [remote] and [number] (where [remote is the name of the remote repo and [number] is the pull request number)</p>
  
  <p>In the never ending attempt to be a better developer, I would like create a alias(?) that could be reduce this call to the following:</p>
  
  <pre><code>  gitpr [remote] [number]
  </code></pre>
  
  <p>How do you do this?  Thanks very much for any help!</p>