LoginSignup
72
53

More than 5 years have passed since last update.

.gitignore が反映されない時の対応

Posted at

リポジトリに.gitignoreが追加されていると、
そのキャッシュが残ってしまい、
変更を加えた.gitignoreが反映されない様です。

なのでgitからキャッシュを削除すればいいはず。

$ git rm -r --cached .

↑これで反映される様になりました。

72
53
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
72
53