vue项目 git上传忽略node_modules和dist

1、在项目目录下 右键 git bash here

2、在命令行输入输touch .gitignore ,生成“.gitignore”文件

3、在gitignore文件中输入

.DS_Store

node_modules/

dist/

npm-debug.log

.vscode/

vue项目 git上传忽略node_modules和dist_第1张图片

这些都是不用提交的

ps:如果已经生成过了node-moduls 建议删除后 重新 npm install

你可能感兴趣的:(vue-知识点总结,vue,不提交node-moduls,git)