delete gitignore files from repo code example
Example 1: github untrack files
git rm -r --cached .
Example 2: remove gitignore files
git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached
git commit -am "Remove ignored files"
// answer from: thSoft
Example 3: git remove file from gitignore
git rm --cached <file>
Example 4: git remove all files in gitignore
git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached