Git ignoruj nie działa
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
Second Pubescence
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
# First save your changes to a branch on the remote repo
# If you don't have changes skip these three
git add .
git commit -m "commit message"
git push origin [branchname]
# Then remove all cached files
git rm -r --cached .
# Add all the files back in
git add .
# The files you added to the .gitignore should now be greyed out in
# the file explorer window if you're using vscode
# To ignore folders add a / at the end.
node_modules/
git rm -rf --cached .
git add .