title: I have a folder in git need to delete it
body: <p>I have cloned the repo from remote.Now I have code in git local repsoitory. I want to delete a folder which consists of some binaries. I tried to use the command  </p>
  
  <pre><code>git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch FOLDERNAME" HEAD
  
  git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch foldername" -- --all
  </code></pre>
  
  <p>its rewriting the sha1 but not deleting. Need to delete, Need the commit history.</p>