I am running Ubuntu 18.04, as a Subsystem for Windows. I have done this in mutliple PCs and never had this problem. I try to to
git clone <repo>, and I get this:
Cloning into '<repo>'... error: chmod on /mnt/c/Users/Efsta/Code/<repo>/.git/config.lock failed: Operation not permitted fatal: could not set 'core.filemode' to 'false'
I tried the following:
❯ git config core.fileMode false, with this result
fatal: not in a git directory
❯ git config --global core.filemode false
❯ git config --add --global core.filemode false
Nothing seems to work. I already tried a couple of answers here, but WSL seems a little bit more tricky. Anyone have any idea about how to solve this?
I have also tried everything in this question : https://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-file-mode-chmod-changes, nothing seems to work.