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