title: How can I remove an applied git patch?
body: <p>I have a git repo, where we apply many patches in test environment.</p>
  
  <pre><code>git apply --stat --check --ignore-whitespace /home/kent/Desktop/patches/test.patch --exclude .gitignore
  
  git am -s --ignore-whitespace /home/kent/Desktop/patches/test.patch --exclude .gitignore --exclude .gitignore
  </code></pre>
  
  <p>If I have to remove the patch and apply a new one, at present I clone the live content and reapply all the test patches and push again.
  This process is somehow cumbersome and also leads to errors at times I also miss one or two patches.</p>
  
  <p>I wanted to know if there is a way to remove a patch and apply the new one</p>
  
  <p>Also, to add one way is there if we commit each time to the patch and then i can use:</p>
  
  <pre><code>git revert &lt;&lt;commit id&gt;&gt;
  </code></pre>
  
  <p>The above does not work for me at all times.</p>