往github上传代码忽略node_modules文件夹

首先必须在你初始化  git 仓库的那个文件夹建立 

.gitigonre

文件,在这个文件夹里面写入下面代码

node_modules
npm-debug.log
package-lock.json

然后就 git add . 和

git commit -m 提交

然后提交的时候就不会包含node_modules文件

猜你喜欢

转载自www.cnblogs.com/wuxianqiang/p/10052701.html