title: Git rebase (Merge Squash) my feature branch onto another branch
body: <p>I'm looking for a git command to help me with my feature branches when they're ready to go into Master. This git command would squash all my changes on my branch into a single commit on top of master. I do this today with:</p>
  
  <pre><code>git rebase origin/master
  git rebase -i HEAD~4
  </code></pre>
  
  <p>Where 4 is the number of commits to squash. However, this requires me to know how many commits I have. I do this today by running:</p>
  
  <pre><code>git log HEAD...origin/master
  </code></pre>
  
  <p>and then counting the commits.</p>
  
  <p>I feel as though there should be a better way to do this. Or is this how everyone else does it, too?</p>