title: Git list of branch names of specific remote
body: <p>How can it possible to get all names of some remote origin branches?</p>
  
  <p>I started from <code>--remote --list</code> options, but got redundant <code>origin/HEAD -&gt; origin/master</code> message and branches from the another origin.</p>
  
  <pre><code>$&gt; git branch --remote --list
    origin/HEAD -&gt; origin/master
    origin1/develop
    origin1/feature/1
    origin1/feature/2
    origin1/feature/3
    origin1/master
    origin2/develop
    origin2/feature/1
    origin2/feature/2
    origin2/master
  </code></pre>
  
  <p>Branches of specific origin could be matched with <code>&lt;pattern&gt;</code> option, but redundant message is still there. Actually that pattern is not really correct, because some origin's name could be a substring of another origin name, or even some branch.</p>
  
  <pre><code>$&gt; git branch --remote --list origin1*
    origin1/HEAD -&gt; origin/master
    origin1/develop
    origin1/feature/1
    origin1/feature/2
    origin1/feature/3
    origin1/master
  </code></pre>
  
  <p>What am I looking for is a list of branch names of <code>origin1</code>, any of them I could use for <code>git checkout</code> command. Something like that:</p>
  
  <pre><code>develop
  feature/1
  feature/2
  feature/3
  master
  </code></pre>
  
  <p>It's important that it should be done without <code>grep</code>, <code>sed</code>, <code>tail</code> or even <code>ghc -e</code> wrappers, only with true <code>git</code> power, because of their unsafeness and variation.</p>