title: Checkout single folder in Git
body: <p>I've cloned my repository via <code>git clone</code>, and now I want to checkout a folder.</p>
  
  <p>Source folder: <code>/opt/XYZ/foldertochecout</code></p>
  
  <p>and it should be checked out to</p>
  
  <pre><code>/var/www/foldertochecout 
  </code></pre>
  
  <p>Is that possible and how?</p>