title: Why is Git merge creating multiple commits on master branch?
body: <p>There are two branches I am working with, <code>master</code> and <code>newFeature</code>.  While building the "new feature", I added multiple commits to the <code>newFeature</code> branch.  My understanding of <code>git merge</code> is that it will create a <em>single</em> commit on <code>master</code> once the branches are merged, however when merged, <code>master</code> now has the full commit history that is on <code>newFeature</code>.  For example-</p>
  
  <pre><code>master (pre-merge):
  
      1=&gt;2=&gt;3
  
  newVersion:
  
      1=&gt;2=&gt;3=&gt;4=&gt;5=&gt;6
  
  master (actual results of merge):
  
      1=&gt;2=&gt;3=&gt;4=&gt;5=&gt;6
  
  master (expected results of merge):
  
      1=&gt;2=&gt;3=&gt;6
  </code></pre>
  
  <p>Is there any way to remove the intermediary commits from <code>newVersion</code> during the merge, and why isn't merge working as expected?</p>