LoginSignup
1
0

More than 1 year has passed since last update.

git warning: the following paths have collided

Last updated at Posted at 2020-03-15

環境

mac os

症状

1. 同じディレクトリに対して2つのコマンドを実行した結果、lsコマンドと、git rm -rコマンドで差異が生じる

git rm -r End を入力後タブキーを押す
EndUsers        EnduserDevices  EnduserEvents   Endusers
ls -la|grep End
drwxr-xr-x    - kazukinakamura 15 3 18:00 EnduserDevices
drwxr-xr-x    - kazukinakamura 15 3 18:00 EnduserEvents
drwxr-xr-x    - kazukinakamura 15 3 18:00 EndUsers

2. git clone時Warningが発生する
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:

原因

mac osでは大文字小文字を区別しない

Which OS are you using? This error is caused by your filesystem not being case sensitive, like the default on Mac OS X.

対策

消したいフォルダを消す

今回消したいディレクトリはEndUsersなので

git rm -r EndUsers/

参考

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