title: Git: How to squash all commits on `master` branch?
body: <p>I'm looking for a way to squash <strong>all</strong> git commits into a single big commit in <code>master</code> branch. I fully understand the consequences of what I'm trying to do, no need to explain that this is dangerous or that it's not the right way to go - I want to lose all my history and turn this repository into a single big commit.</p>
  
  <p>The main problem is: I have no other living branches, no local commits, and all of the previous commits have <strong>already been pushed</strong> to remote <code>master</code>.</p>
  
  <p>Hacky scripts are also welcome.</p>