Problems ignoring some files in local repository [duplicate]
In addition of ignoring .angular/cache
, you can consider using git filter-repo
instead of the obsolete git filter-branch
or BFG.
That way, you would:
-
install
git filter-repo
(python-based) - delete any large file in your history:
git filter-repo --strip-blobs-bigger-than 2M
for instance. (content-based filtering) - ignore
.angular/cache
- force push (
git push --force
: make sure to notify any collaborator on that repository)