title: How can I push a new branch to remote with only one commit in history?
body: <p>I want my <strong>commit history to remain as clean as possible</strong> when pushing to remote branch. I would like to push only one commit that sums up all the commits I've done locally.</p>
  <p>I have tried squashing but it didn't really work for me, or I'm doing it wrong.</p>
  <p>What I do know is that I <strong>soft reset</strong> <code>git reset --soft HEAD~1</code> my local commits and then I create a new commit which is the one I actually push.7</p>
  <p>Is there a better way to do that?</p>