處理方案 git rm -r --cached . // 刪除本地緩存 git add . // 添加要提交的文件 git commit -m 'update .gitignore' // 更新本地的緩存