一开始某些文件忘记加入到.gitignore中,后续补上了发现没法ignore,这时候要作的是,删除本地git缓存 git
git rm --cached -r . 缓存
而后 spa
git add . orm
git commit -m "message" it