Help us understand the problem. What is going on with this article?

git warning: the following paths have collided

環境

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.

https://stackoverflow.com/questions/7383426/cloning-a-git-repo-and-it-already-has-a-dirty-working-directory-whaaaaa

対策

消したいフォルダを消す

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

git rm -r EndUsers/

参考

https://qiita.com/inductor/items/6d58afd9f6b741208439

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした