title: git: copy a worktree of a remote branch that is not present at local
body: <p>At work, I have a project that it has two different version with some common basic features. I make use of <code>git worktree</code> to put these versions in separate folders that I have two long-running branches beside <code>master</code> for each version and the <code>master</code> is for common features. So there are 3 folders with one repository. Also, there is a remote repository for this and the whole things are pushed there.</p>
  
  <pre><code>$git branch -a
  *master
   version-1
   version-2
   remote/origin/master
   remote/origin/version-1
   remote/origin/version-2
  </code></pre>
  
  <p>At home PC, I have the folder of <code>master</code> and this local repository is linked to the same remote as my work repo. And when I get the list of branches it is like:</p>
  
  <pre><code>$git branch -a
  *master
   remote/origin/master
   remote/origin/version-1
   remote/origin/version-2
  </code></pre>
  
  <p>I want to <code>checkout</code> to the <code>version-1</code> as well as copy the whole stuff of version-a to a local folder, that the folder is tracked by git as a <code>worktree</code> like at my work.
  does <code>git clone</code> or <code>git checkout</code> do that or I need to do something more tricky?</p>