web-dev-qa-db-ja.com

私がgit cloneを実行するときの大文字と小文字を区別するパス衝突

リポジトリを複製すると、次の警告が表示されます。

...
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

  'components/User/index.js'
  'components/user/index.js'

私は読んでいて、大文字と小文字が区別されていないため、フォルダパスでは有効になっていないため、Windowsの問題になる可能性があります。 git config --global core.ignorecase falseでも試しましたが、失敗し続けます。

Windows 10とGitバージョン2.28.0.Windows.1を使用します

誰もがこの問題を見るのですか?

9
Juan

Windows 10の能力を有効にする機能を使用します。 ディレクトリごとのケース感度

--- WindowsサブシステムのLinuxのサブシステム大文字と小文字を区別してWindowsフォルダをマウントしましょう。

詳細については:

Windows 10上の大文字と小文字に敏感なファイルとフォルダ名を有効にする方法

ディレクトリごとのケース感度とWSL | Windowsのコマンドライン

3
Inigo