【git】変更したgitignoreを適用

git rm -r --cached .
git add .
git commit -m "new gitignore"

全部除外してその後足し直すだけ。

参考: Resync git repo with new gitignore file - Stack Overflow