Git for visual studio 2015, delete intermediate commit
<p>Im new using GIT...While working with it, i have created intermediate commits just in the case my computer crash or something like that, so i have a commit history like this in a new branch</p>

<pre><code>frmClients - crud Operations final
frmClients - crud Operations tmp3
frmClients - crud Operations tmp2
frmClients - crud Operations tmp1
</code></pre>

<p>I would like to know if there is a way to delete those intermediate commits (from tmp1 to tmp3) and keep only the last one, i didnt merge&amp;push it yet to the server.</p>

<p>Doing a revert or hard reset wont do what i want. Or mayb im using git in a wrong way?</p>