title: git checkout a single file from another branch and put in different folder
body: <p>I am trying to <code>git checkout</code> a single file from another branch.</p>
  
  <p>Everything is fine, but it puts the file in the same directory tree of the branch that I am checking out.</p>
  
  <p>There is a way to specify a different destination folder during git checkout?</p>
  
  <p>This is what I did:</p>
  
  <pre><code>git checkout other_branch -- path/to/file/xxx
  </code></pre>
  
  <p>git status:</p>
  
  <pre><code>new file:             path/to/file/xxx
  </code></pre>
  
  <p>this the result I need (put xxx into the root directory of my working branch):</p>
  
  <pre><code>new file:             ./xxx
  </code></pre>