Currently git is not ignoring node_modules folder. I have tried below command:
git rm -r --cached node_modules
Output of above line:
fatal: pathspec 'node_modules' did not match any files
When I run git status
I get the following output:
$ git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
configs/
node_modules/
package-lock.json
package.json
routes/
server.js
nothing added to commit but untracked files present (use "git add" to track)
I don't want to include my node_modules/
folder the next time I run git add .
. Currently it is adding all the files from node_modules/
folder.