[Applying .gitignore to committed files] I have committed loads of files that I now want to ignore. How can I tell git to now ignore these files from future commits? https://stackoverflow.com/a/7532131/2722270
#tags: git
git ls-files -ci --exclude-standard
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached