1. 打开 git bash
执行: touch .gitignore
2. 会生成一个“.gitignore” 文件
输入以下代码。下次上传将会自动过滤掉
node_modules/ dist/
配置规则: