往github上传代码忽略node_modules文件夹时间:2023-03-08 23:56:29 首先必须在你初始化 git 仓库的那个文件夹建立 .gitigonre 文件,在这个文件夹里面写入下面代码 node_modules npm-debug.log package-lock.json 然后就 git add . 和 git commit -m 提交 然后提交的时候就不会包含node_modules文件