In my repository there is a file (always that one) that always gives me trouble.
I'm working with coffeescript and generating the js with a grunt task.
For several times
git status told me that this file was modified and needed to be added. The problem is that git sees this file duplicated:
Ok..so I try to add everything with
git add :/ and all the files are added, included ONE copy of
AreaChart.js while the other one remains
modified and unstaged. If I try to
add it manually, nothing happens, its status remains
modified and unstaged.
Is it a git bug? How can I fix this?
actually git sees the same file with 2 different file names, that is
ls I only see
AreaChart.js (uppercase C) as it is supposed to be.
If I add
C) --> git adds
If I add
c) --> git adds
- I found out the both files exist on the repository
- To my surprise I've found out that my filesystem (mac) is not case-sensitive, so if I
touch Testonly one file is created (or maybe both but I can see only one of them)
- The output
git config core.ignorecasesays