[WSL] How to resolve Operation not permitted
error on cloning a git repository
A quick tip!
I just reinstalled Ubuntu WSL on my freshly-formatted laptop. Everything seemed to be working properly but I ran into an annoying problem cloning one of my git repository:
Cloning into 'alessandrococco.gitlab.io'
error: chmod on /mnt/c/Users/alessandro/Projects/alessandrococco.gitlab.io/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
It’s weird because it’s the thousandth time that I’ve done it and this is the first time I’ve come across this error!
Read More →