Fork me on GitHub

Git: Remove all ignored but still tracked files

git rm --cached `git ls-files -i --exclude-from=.gitignore`

From: How to remove files that are listed in the .gitignore but still on the repository?

Tags: git