title: git ahead/behind info between master and branch?
body: <p>I have created a branch for testing in my local repo (<code>test-branch</code>) which I pushed to <code>Github</code>.</p>
  
  <p>If I go to my <code>Github</code> account and select this <code>test-branch</code> it shows the info:</p>
  
  <pre><code>This branch is 1 commit ahead and 2 commits behind master
  </code></pre>
  
  <p>My questions are:</p>
  
  <ol>
  <li>How can I display this info locally (ie: a command that shows this on the terminal, rather than having to open <code>Github</code> to see it)?</li>
  <li><p>I know I can see the diffs between branches using:</p>
  
  <pre><code>git diff master..test-branch
  </code></pre>
  
  <p>or using <code>Meld</code> (which I prefer):</p>
  
  <pre><code>git difftool master..test-branch
  </code></pre>
  
  <p>but I was wondering if there's a way to see the <em>ahead</em> and <em>behind</em> commits separately. I.E.: is there a way to show that <em>1 commit ahead</em> by itself and then those <em>2 commits behind</em> by themselves?</p></li>
  </ol>