title: Remove a deleted folder from git history
body: <p>How can I remove a folder that is already deleted from the git history?</p>
  
  <p>In my git repository I have a folder called <code>/foo</code> (1.2GB of size). I have deleted the folder <code>foo</code> with <code>rm -rf /foo</code> beause I do not need it any more. After many other commits I thought. Why is my remote repo so big...I have forgotten to do <code>git rm --cached ...</code> instead of <code>rm -rf ...</code>. How can I now remove the folder from git history?</p>
  
  <p><code>git rm --cached /foo</code> won't work because the folder is already delete in an earlier commit.</p>