跳过不提交文件 1.在项目的根目录,右键选择 Git Bash 进入命令行; 2.在命令行输入touch .gitignore 3.输入过滤文件 示例 node_modules/ 表示过滤这个文件夹 *.zip 过滤zip后缀文件 demo.html 过滤该文件 删除已提交文件 删除提交的node_modules文件 git rm -r --cached node_modules