lkorczowski / Tinnitus-n-Sleep

Detecting events in sleeping tinnitus patients
MIT License
1 stars 0 forks source link

FYI Case insentive mac OS made git hell on earth #47

Closed lkorczowski closed 4 years ago

lkorczowski commented 4 years ago

FYI

I'm working on Mac OS. To make life "easier" dev of Mac OS thought it would be better to have file system be case insensitive. They thought wrong.

At one point, we had two notebooks folder in the git system because of that "notebooks/" and "Notebooks/"

I cleaned that but we should be careful to keep all folder in lowercap

RobinGuillard commented 4 years ago

Perfect, thank you!

"Bien vu"!

lkorczowski commented 4 years ago

solved using:

git mv OldFolder tmp
git mv tmp oldfolder

Notebooks renamed to notebooks resourcesrenamed to data

please get the modification in your banch @RobinGuillard by doing:

git checkout yourbranch
git merge feat-ear_report
lkorczowski commented 4 years ago

OK, so basically, I couldn't make it work on my side anyway because the only way to fix that is being on the case sensitive machine (source: https://www.drupaleasy.com/blogs/ultimike/2013/03/lesson-learned-i-cant-get-my-git-repo-clean).

So basically, I'm lucky to just have lost the work of this morning and if it works on you side, I just need to figure out how to come back to normal (maybe a clean git clone will make it works) because I'm stuck with the following error when I want to checkout:

(tinnsleep-env) MBP-de-Louis:notebooks louis$ git checkout master
error: The following untracked working tree files would be overwritten by checkout:
        Notebooks/Bruxism_comparison_adaptive.ipynb
        Notebooks/Bruxism_detection.ipynb

obviously if I remove theses files, it will remove the notebooks/ files... so the actual files.

This is madness. WHY DO THE MAC ENGINEERS THOUGHT IT WAS A GOOD IDEA TO MAKE THE SYSTEM CASE INSENSITIVE ?!

lkorczowski commented 4 years ago

We consider this issue solved. Robin made the modification on his case-sensitive machine and I git clone a clean repo. It worked.