0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

git ignoreが反映されない!?

Posted at

噂によるとキャッシュが原因らしい。。。

原因

  • 以前にファイルをgitにpushしているとキャッシュが影響して反映されないとかなんとか。
  • 詳しくはRefを見てください

手順

  1. .gitignore 編集
  2. キャッシュを削除
  3. commit & push

キャッシュ削除する際は下記コマンドを実行してみよう

$ git rm -r --cached . //ファイル全体キャッシュ削除
$ git rm -r --cached [ファイル名]  //ファイル指定してキャッシュ削除

Ref

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?