title: Completely remove a commit from remote Git repository
body: <p>Let's assume the commit history of the branch is as follows:</p>
  
  <pre><code>John Doe [0003] Third Commit
  Jane Roe [0002] Second Commit
  Jane Roe [0001] First commit
  </code></pre>
  
  <p>What I would like to do is to completely remove the Third Commit [0003] and replace it with the new Fourth Commit (so the Fourth becomes Third).</p>
  
  <p>I used <code>git reset --hard 0002</code> to set the HEAD. I have also made some changes and what I want now is the NEW Second Commit (or the Fourth Commit) to become the OLD Third Commit [0003].</p>
  
  <p><strong>John Doe [0003] Fourth Commit (Second Commit with changes)</strong></p>
  
  <p><del>John Doe [0003] Third Commit</del></p>
  
  <p>Jane Roe [0002] Second Commit</p>
  
  <p>Jane Roe [0001] First commit</p>