git remove file from gitignore code example
Example 1: git ignore remove
git rm -r --cached .
git add .
git commit -m "Removing all files in .gitignore"
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>