file not ignored after being added to gitignore

EMBED

Wed Mar 10 2021 13:26:09 GMT+0000 (UTC)

Saved by @ali_alaraby


git rm --cached <file> || git rm -r --cached <folder> add > commit > push

https://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore