Yesterday, i was facing another weird situation. I finally made a first iOS app working on the macbook. Or, to be honest, not really working, but compilable and runnable. So i decided to add it to my repository to keep it tracked and continue working.
So i installed my favourite Gittyup using brew, cloned the repository of HryProDva.cz and wanted just to add the project. Unfortunately just after the cloning, many deleted files appeared to commit. And i was not able to recognise, why that happened.
I have also tried everything to get back to my last commit, so i tried to revert the changes, stash them, or hard reset to the latest master commit again, but nothing worked. The same files have been deleted immediately after these actions again.
I spent about an hour trying to solve that issue. And then finally i found the reason. The apple filesystem is case-insensitive, and the files that have the name same text but different case are being messed and only one of these is being kept. Usualy the lowercase one. And this drives me mad. And i can not find any acceptable solution. One of solution is to wipe whole drive and reformat and reinstall it with some experimental parameter to turn on the case sensitivity, and the second is to create some partition (somehow), format it with case-sensitivity experimental flag, and then keep mounting it and hold the repository there.
This is really crazy. Maybe there is some more usable solution, but i cannot find any...
Jan "Jenkings" Škoda - blog
Simplifying IT, Amplifying Knowledge