title: How can I pull remote directory first time?
body: <p>I am asked to take clone of project repository from GitHub server.</p>
  
  <p>There are three branches on server: <code>master</code>, <code>qa</code> and <code>dev</code>.</p>
  
  <p>After taking clone to the project, how can I checkout <code>qa</code> or <code>dev</code> branch as both the branches are not on my local machine?</p>
  
  <p>I tried the command </p>
  
  <pre><code>git checkout qa
  </code></pre>
  
  <p>it raised an error</p>
  
  <blockquote>
    <p>$ git checkout qa error: pathspec 'qa' did not match any file(s) known
    to git.</p>
  </blockquote>