すでにリポジトリに ignore ファイルを追加していると、
キャッシュが残っており .gitignore ファイルの内容が反映されない。
なので、キャッシュを消してあげよう。
.gitignore
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
More than 1 year has passed since last update.
すでにリポジトリに ignore ファイルを追加していると、
キャッシュが残っており .gitignore ファイルの内容が反映されない。
なので、キャッシュを消してあげよう。
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
Register as a new user and use Qiita more conveniently