title: git pull all branches from remote repository
body: <p>How do I pull all of the remote branches to my own repository?</p>
  
  <p>if I type:</p>
  
  <pre><code>git branch -a
  </code></pre>
  
  <p>I get a long list of branches, but if I type:</p>
  
  <pre><code>git branch 
  </code></pre>
  
  <p>I see only 2 of them.</p>
  
  <p>How do I pull <strong>ALL</strong> branches into my local list?</p>
  
  <p>I know I can do:</p>
  
  <pre><code>git checkout --track origin/branch-name
  </code></pre>
  
  <p>but that pulls and checks out only one branch at a time. Any way to get it all done at once without that whole tedious work of running <kbd>git checkout --track origin/branch-name</kbd> over and over and over again?</p>
  
  <hr>
  
  <p>ps.
  I tried following commands, none of them made remote branches appear in my <kbd>git branch</kbd> list:</p>
  
  <pre><code>git fetch --all
  git remote update
  git pull --all
  </code></pre>