1.项目根目录下创建.gitignore文件
2.忽略已经提交的文件或文件夹
先删除本地的缓存
git rm -r --cached .
git add .
git commit -m "update .gitignore"