For anyone struggling with seemingly unfixable file issues, I want to share a solution that finally worked for me after trying everything else.
My problem turned out to be incredibly simple: the directory path of my files contained a special character or was in a different language.
Once I deleted the problematic files and re-cloned them into a new directory with a clean, standard path, everything suddenly worked perfectly.
This might be your issue, or it might not, but it’s definitely worth checking if you’re out of ideas o(≧▽≦*)o