title: How to delete a 'git commit' from LOG, like it had never existed
body: <p>I have made a mistake in one of the commits. Now I want to completely delete this commit, so it looks like it has never existed. I don't want to see this in log.</p>
  
  <p>I have tried all tips from <a href="https://stackoverflow.com/questions/1338728/how-to-delete-a-git-commit">this question ("<em>How to delete a 'git commit'</em>")</a>, but I can see the commit in the log. How I can completely delete it?</p>
  
  <p>-- Edit --</p>
  
  <p>Ok, I do not give the completely information. <em>Kevin Ballard</em> are correct.</p>
  
  <p>By now, I do not push this commit, it's only in my machine. The <em>ouah</em> answer work, the command</p>
  
  <pre><code>git log
  </code></pre>
  
  <p>will not show, but what the command </p>
  
  <pre><code>git reset --hard HEAD^
  </code></pre>
  
  <p>do is "chekout last commit and change the the branch to this", so I continue seeing that commit with a graph program like <a href="http://www.syntevo.com/smartgit/index.html" rel="noreferrer">SmartGit</a>.</p>
  
  <p>--Edit 2--</p>
  
  <p>No, this is a SmartGit bug!!!! The commit really disappear. I have to close the windows of log and than open again. The commit is no more there.</p>