git remove cached files gitignore code example
Example 1: git rm cached gitignore
git rm -r --cached .
Example 2: remove file from git tracking
git rm --cached <file_name>
Example 3: git ignore still tracking
git rm --cached <file>
git rm -r --cached <folder>