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

.gitigonre

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

node_modules
npm-debug.log
package-lock.json

然后就 git add . 和

git commit -m 提交

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

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

 

相关文章:

  • 2022-01-21
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-05-20
  • 2022-01-07
  • 2021-11-04
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2021-04-03
  • 2021-07-19
  • 2021-10-27
  • 2021-06-20
  • 2021-08-28
相关资源
相似解决方案