重写文件后需要使能gitignore需要删除缓存,添加所有文件 提交 推送
git rm -r --cached . # 删除缓存 git add . #重写添加文件,ignore的文件不填加 git commit -m "add gitignore" git push origin master