remove an file that has specific name gitignore code example
Example: git remove all files in gitignore
git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached
git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached