title: Removing a commit with git
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1338728/how-to-delete-a-git-commit">How to delete a &#39;git commit&#39;</a>  </p>
  </blockquote>
  
  
  
  <p>I am new to git and I encountered a situation which I need some help with.
  I cloned a remote repository to my PC, and then opened a new branch named "meir".</p>
  
  <p>For practice purposes I first commited some changes I've made on a file. Afterwards, I changed the file the way I wanted it to be and commited again. Then I pushed my local branch to the remote repository.</p>
  
  <p>The problem is that I have the first commit which was a test and I would not like it to be on the remote server. I thought about 2 possible ways to fix it:</p>
  
  <ol>
  <li>Remove the remote "meir" branch on the local and remote repository and start over.</li>
  <li>Remove only the first commit and then push the branch again to the server so it will also lose the first commit.</li>
  </ol>
  
  <p>What commands do I need to run to achieve each of the options?</p>
  
  <p>Thanks,
  Meir</p>