git remove file from cache code example
Example 1: git ignore still tracking
git rm --cached <file>
git rm -r --cached <folder>
Example 2: git ignore remove
git rm -r --cached .
git add .
git commit -m "Removing all files in .gitignore"
Example 3: git remove cached
git rm -r --cached <name-of-dir>
Example 4: git rm cached
$ git rm --cached filename