title: Remove a commit and related changes from a branch
body: <pre><code>git log 
  </code></pre>
  
  <p>will list all the commits on the current branch, suppose I got three commits, and I want to remove the one in the middle, you may suggest the following command:</p>
  
  <pre><code>git reset --hard &lt;sha1-commit-id&gt;
  </code></pre>
  
  <p>However, I don't want to revert to that commit id, I want just to remove it from the branch so next time when I do <code>git log</code> it will not figure in the list. Thanx in advance.</p>
  
  <p><strong>EDIT</strong>, sorry for my miss explanation, when I said removing the commit id, I meant removing all related changes as well.</p>