Remove unneeded files from git repository using .gitignore

By Tech Writer git
    git rm --cached `git ls-files -i --exclude-from=.gitignore`     Creds: http://stackoverflow.com/questions/13541615/how-to-remove-files-that-are-listed-in-the-gitignore-but-still-on-the-reposi

 

 

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

 

 

Creds: http://stackoverflow.com/questions/13541615/how-to-remove-files-that-are-listed-in-the-gitignore-but-still-on-the-repositor