LoginSignup
17
14

More than 5 years have passed since last update.

[git]ファイル名を大文字から小文字に変えた時に困ったこと

Last updated at Posted at 2017-04-13

今回起きたこと

とあるプロジェクトで画像の名前を変更したくて、大文字から小文字に修正してgitにpushした。

Test.png → test.png

が、しかし
差分が表示されなかった。

解決法

ターミナルで

git config core.ignorecase false

を実行すれば大文字から小文字にしても差分が表示されるようになった!!

まとめ

.gitディレクトリの中のconfigファイルに

ignorecase = true

と記述されており
これは、ファイル名の大文字・小文字の変更は検知しない設定になっており
これをfalseにすることで解決した。

17
14
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
17
14