DEV Community

Victor Salles
Victor Salles

Posted on

git add adding ignored files

git add adding ignored files

48

I'm trying to remove a previously tracked directory from git, which works, but it's being added back with each subsequent git add ., git add -A, etc. Here's what I've done:

Add to .gitignore in root of project:

node_modules

Run the following:

git rm -r --cached node_modules
git
โ€ฆ

Top comments (0)