title: How to revert last commit and remove it from history?
body: <p>I did a commit and reverted with </p>
  
  <pre><code>git revert HEAD^
  </code></pre>
  
  <p>just git log</p>
  
  <pre><code>➜  git:(master) git log
  commit 45a0b1371e4705c4f875141232d7a97351f0ed8b
  Author: Daniel Palacio &lt;danpal@gmail.com&gt;
  Date:   Tue Jan 17 16:32:15 2012 -0800
  
      Production explanation
  </code></pre>
  
  <p>But if I do git log --all it still show up. I need to remove it from the history as it has sensitive information</p>
  
  <pre><code>git log --all
  commit 5d44355080500ee6518f157c084f519da47b9391
  Author: Daniel Palacio
  Date:   Tue Jan 17 16:40:48 2012 -0800
  
      This commit has to be reset
  
  commit 45a0b1371e4705c4f875141232d7a97351f0ed8b
  Author: Daniel Palacio 
  Date:   Tue Jan 17 16:32:15 2012 -0800
  
      Production explanation
  </code></pre>
  
  <p>How do I remove the commit 5d44355080500ee6518f157c084f519da47b9391 from the history too?</p>