When attempting to clone a git repository on a linked folder within Windows Subsystem for Linux (WSL), I encountered the following error message:
Cloning into 'pw-iam'... error: chmod on /mnt/c/projects/pw-iam/.git/config.lock failed: Operation not permitted fatal: could not set 'core.filemode' to 'false'
This error occurs when cloning repos to a mounted Windows drive in WSL. I am not sure of the fix for this issue, but if anyone has a solution, please let me know. Otherwise, this post serves as a note-to-self for me to try and figure out the solution in the future.
Leave a Reply