.gitignore如何配置提交远程仓库时忽略某些目录
-
如果项目中没有此文件, 需手动创建一个

-
.DS_Store node_modules/ dist/ .history/ npm-debug.log* yarn-debug.log* yarn-error.log* package-lock.json tests/**/coverage/ # Editor directories and files .idea .vscode *.suo *.ntvs* *.njsproj *.sln - 我们都知道
node_modules/不会被上传远程仓库, 那么我们只需要照猫画虎, 把要忽略掉的目录填上去就好了