LoginSignup
0
0

.gitignoreがうまく動作しなくて30分とかした話

Posted at

課題

.gitignoreファイルに無視したいディレクトリを.gitignoreファイルをカレントディレクトリとした相対パスで書いているのに無視されない

解決策

すでに追跡(トラッキング)されているファイル、ディレクトリは後から.gitignoreファイルに追記しても無視してくれない仕様であるそう。
よって、

git rm --cached [file or directory name]

でトラッキングを取り消す必要がある。

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