title: Git shortcut to pull with clone if no local there yet?
body: <p>Is there a one-command way to get an up-to-date mirror of a remote repo? 
  That is</p>
  
  <ul>
  <li>if local repo not there yet: clone</li>
  <li>if it's there: pull</li>
  </ul>
  
  <p>I know I could script this around (e.g <code>if [ -d repo ]; then (cd repo &amp;&amp; git pull); else git clone $repourl;fi
  </code>) , but I need the simplest possible cross-platform way (actually used for Jenkins-CI, which I know does this by default, however I need 2 repos for which support is limited).</p>
  
  <p>Git has similar shortcuts for other things (eg. checkout -b, and pull itself), so I'm wondering if I missed something. Thanks!</p>