read
To untrack a file that has been added/initialized to your repository ie) stop tracking the file but do not delete it
- Commit any outstanding code changes
- To remove any changed files from the index use:
git rm -r --cached .
git add -A
git commit -m ".gitignore is now working"