Remove node_modules from git in vscode

后端 未结 7 1431
误落风尘
误落风尘 2021-01-29 19:37

Getting error while removing node_modules in git, vscode terminal

 git rm -r --cached node_modules

Error:

7条回答
  •  失恋的感觉
    2021-01-29 19:55

    The error means node_modules directory is not under git version control. There are 2 possibilities:

    • They are not added to Git yet. Try running git status command, to see whether they appear as untracked files.

    • It has already been added into your gitignore file. To list all ignored files, try this command: git ls-files --others -i --exclude-standard

提交回复
热议问题