title: How to remove all .pdf files from a git push
body: <p>I have a commit and <code>git diff-tree --no-commit-id --name-only -r fef3ea9ff1ba8d62049fd5f3bc4e2e8a2c08bfd3</code> outputs all the files in the commit.</p>
  
  <p>The files are in different folders and many are .pdf files</p>
  
  <p>I try: <code>git rm *.pdf</code></p>
  
  <p>and it says: <code>fatal: pathspec '*.pdf' did not match any files</code></p>
  
  <p>How do I remove all the .pdf files from the commit?</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>I try: <code>git rm -r  *.pdf</code> and it gives: </p>
  
  <pre><code>fatal: pathspec '*.pdf' did not match any files
  </code></pre>
  
  <p><strong>EDIT 2</strong></p>
  
  <pre><code>sudo git rm -r */*.pdf
  </code></pre>
  
  <p>gives</p>
  
  <pre><code>fatal: pathspec 'MyFolder/my_file.pdf' did not match any files
  </code></pre>
  
  <p>my_file.pdf is the 1st file listed in the <code>git diff-tree</code> output</p>