title: Cleaning up the branch history in Git
body: <p>I'm working on a feature branch for days. During this time I did so many mistakes and committed so many unnecessary code changes, which I had to revert in the next commit. </p>
  
  <p>Finally, I found the best solution and now I'm ready to create a Pull-Request.
  However, I don't want that every one can see how many stupid commits I've don to the branch. :-)</p>
  
  <p>What would be the best way to create a clean PR with the latest code but without all those commits? </p>
  
  <p>I'm using Git in terminal.</p>