How can I remove a folder that is already deleted from the git history?
In my git repository I have a folder called /foo
(1.2GB of size). I have deleted the folder foo
with rm -rf /foo
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 git rm --cached ...
instead of rm -rf ...
. How can I now remove the folder from git history?
git rm --cached /foo
won't work because the folder is already delete in an earlier commit.