Git忽略规则.gitignore忽略node_modules文件夹

在项目文件夹里添加.gitignore的文件

打开文件,在里面添加

/node_modules
原文地址:https://www.cnblogs.com/hongmaju/p/6935522.html