title: How to squash commits that contain a merge commit
body: <p>Is there a way to squash commits that have a merge commit? I am able to squash when there is not any merge commits but I don't know how to do it when there is one.</p>
  <p>Like these two commits.</p>
  <p><a href="https://i.stack.imgur.com/Bflji.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bflji.png" alt="git tree" /></a></p>