NikolaiT/GoogleScraper

Two outputs directories with different cases broke the git repo in mac

wang-ye opened this issue · 0 comments

Describe the bug
It is difficult to get a clean git status now on Mac. This is caused by the two directories with same name but different cases (outputs and Outputs). See below:

To Reproduce
Steps to reproduce the behavior:

18:03:15 ~/github/GoogleScraper (master) $ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified:   outputs/output.json

no changes added to commit (use "git add" and/or "git commit -a")
18:03:19 ~/github/GoogleScraper (master) $ git checkout -- outputs/output.json
18:03:29 ~/github/GoogleScraper (master) $ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified:   Outputs/output.json

Expected behavior
We should be able to see a clean "git status" output. However, due to the case insensitivity on mac, the git status can never be clean.

Desktop (please complete the following information):

  • OS: MacOs