Git - Remove ignored files from repository
bartron on 1/1/2021
Permanently remove ignored files from a Git repository:
git ls-files -i --exclude-from=.gitignore | xargs git rm --cached
Permanently remove ignored files from a Git repository:
git ls-files -i --exclude-from=.gitignore | xargs git rm --cached