When I first created my project, I pushed it without adding the node_modules, bin, and obj folders to the gitignore file. Now, after adding them to the gitignore, I'm trying to delete those folders.
Originally, I simply added the folders to the gitignore, and hoped that after pushing, they'd be gone. That obviously didn't work, so I tried the one command I kept finding on every site; git rm -r --cached node_modules
.
I ran this command from the root of my project, the solution folder, and even the git folder itself, and in all of them it gave me the same response: fatal: pathspec 'node_modules' did not match any files
.
Here's my current gitignore file:
# compiled output
/dist
/dist-server
/tmp
/out-tsc
# dependencies
/node_modules
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
# System Files
.DS_Store
Thumbs.db
# rm
obj
bin
node_modules
I've probably made some minor, dumb mistake, and in my defense I really haven't worked with git much yet at all..
Thank you for your time and help ^^'
Edit: Someone assumed this post had the answer to my question and closed my question, unfortunately it doesn't, as it's a completely different question.
Edit 2: domiSchenk found a post that actually contains the command I needed and with which I was able to delete my folders worked.