title: Git - How can I clean up multiple merge commits?
body: <p>I tried to squash a merge commit I had to do because I wasn't aware that I pushed something onto the branch from a different computer, but then I noticed, merge-commits don't appear in git-log, so I basically have this weird history now where two identical commits appear twice:</p>
  <pre><code>40fdd9 (HEAD -&gt; master, origin/master, origin/HEAD) Merge branch 'master' of github./Project
  bbaf22 Refactored ...
  3ec9f6 Merge branch 'master' of github.com:/Project
  eabb68 Refactored ...
  a54681 Update README.md
  </code></pre>
  <p>I would like to have this structure</p>
  <pre><code>newHash (HEAD -&gt; master, origin/master, origin/HEAD) Refactored ...
  a54681 Update README.md
  </code></pre>
  <p>Can someone help me out what I have to do?</p>
  <p>Any help is very much appreciated</p>