Обновлено GitInorore не работает
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
ZioTino
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
git rm -rf --cached .
git add .
# To ignore folders add a / at the end.
node_modules/
git rm -rf --cached .
git add .
#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