git remove file and ignore code example
Example 1: remove file from git tracking
git rm --cached
Example 2: git ignore remove
git rm -r --cached .
git add .
git commit -m "Removing all files in .gitignore"
Example 3: git remove file from gitignore
git rm --cached