git how to untrack a file code example
Example 1: git untrack file
git rm --cached filename
Example 2: github untrack files
git rm -r --cached .
Example 3: remove gitignore files
git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached
git commit -am "Remove ignored files"
// answer from: thSoft
Example 4: git untrack file
git rm -r --cached