Answered by : don-b
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
Source : https://bytefreaks.net/programming-2/my-gitignore-file-is-ignored-by-git-and-it-does-not-work | Last Update : Tue, 23 Feb 21
Answered by : williams-bobadilla
#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
Source : https://stackoverflow.com/questions/51077976/gitignore-for-visual-studio-project-is-not-working | Last Update : Mon, 30 May 22
Answered by : augusto-vicente
git rm -rf --cached .
git add .
Source : https://stackoverflow.com/a/25436481/13384755 | Last Update : Wed, 04 Aug 21
Answered by : thankful-teira-p1hq2y5zkhk7
# Remember to commit everything you've changed before you do this!
git rm -rf --cached .
git add .
# This removes all files from the repository and adds them back
# (this time respecting the rules in your .gitignore).
# Source: https://stackoverflow.com/a/25436481
Source : https://stackoverflow.com/questions/25436312/gitignore-not-working | Last Update : Thu, 02 Sep 21
Answered by : akbarali
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
git push
Source : | Last Update : Thu, 14 Apr 22
Answered by : trained-tuna
# 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
Source : | Last Update : Fri, 20 Aug 21
Answered by : dull-deer-psl65w92z2fj
git rm -rf --cached .
git add .
Source : https://stackoverflow.com/questions/25436312/gitignore-not-working/25436481 | Last Update : Tue, 09 Jun 20
Answered by : damian
# To ignore folders add a / at the end.
node_modules/
Source : | Last Update : Tue, 10 May 22