Remove node_modules from git in vscode

后端 未结 7 1432
误落风尘
误落风尘 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:48

    I faced the same issue. Do the below steps -

    • Make .gitignore file.
    • Run below commands in your terminal

      git rm -r --cached node_modules

      git commit -am "node_modules be gone!"

      git push origin master

    That's all!

    You are good to go!

提交回复
热议问题