how to remove a listed file from gitignore code example
Example 1: git remove all files from gitignore
git ls-files -i --exclude-from=.gitignore | %{git rm --cached $_}
// works with windows powershell
Example 2: git remove all files in gitignore
git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached