Unfortunatly this wasn't right yet. The output should only be 1 commit. Check this out: http://davidwalsh.name/squash-commits-git