git rm -r --cached .
git add .
git commit -m "fixed untracked files"
#normally it happens when you already upload files and after
# that you add your .gitignore file
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
git push
# To ignore folders add a / at the end.
node_modules/