Wednesday, September 17, 2014

How to remove files from git repository added before .gitignore ?

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