title: How to view git commits when local branch is ahead of origin Commits
body: <p>I want to view git commits when my branch is ahead of origin branch.</p>
  
  <p>i tried <code>git log</code>  it returns all commits. but, i want to view only <code>ahead commits</code> from branch to origin/branch</p>
  
  <p>here what i mean,</p>
  
  <blockquote>
  <pre><code>On branch permissions
  Your branch is ahead of 'upstream/permissions' by 2 commits.
    (use "git push" to publish your local commits)
  
  nothing to commit, working directory clean
  </code></pre>
  </blockquote>
  
  <p>in this case i want to view 2 commits</p>