title: fetch in git doesn't get all branches
body: <p>I have cloned a repository, after which somebody else has created a new branch, which I'd like to start working on.  I read the manual, and it seems dead straight easy.  Strangely it's not working, and all the posts I've found suggest I'm doing the right thing.  So I'll subject myself to the lambasting, because there <em>must</em> be something obviously wrong with this:</p>
  
  <p>The correct action <em>seems</em> to be </p>
  
  <pre><code>git fetch
  git branch -a
  * master
    remotes/origin/HEAD --&gt; origin/master
    remotes/origin/master
  git checkout -b dev-gml origin/dev-gml
  </code></pre>
  
  <p>At this point there is a problem, for some reason after <code>git fetch</code> I can't see the dev-gml remote branch.  Why not?  If I clone the repository freshly, it's there, so certainly the remote branch exists:</p>
  
  <pre><code>$ mkdir ../gitest
  $ cd ../gitest
  $ git clone https://github.com/example/proj.git
  Cloning into proj...
  remote: Counting objects: 1155, done.
  remote: Compressing objects: 100% (383/383), done.
  remote: Total 1155 (delta 741), reused 1155 (delta 741)
  Receiving objects: 100% (1155/1155), 477.22 KiB | 877 KiB/s, done.
  Resolving deltas: 100% (741/741), done.
  $ cd projdir
  $ git branch -a
  * master
    remotes/origin/HEAD -&gt; origin/master
    remotes/origin/dev-gml
    remotes/origin/master
  </code></pre>
  
  <p>I've tried <code>git update</code>, <code>git pull</code>, <code>git fetch --all</code>, <code>git pretty-please</code> in all possible permutations...</p>