Tag Archives: WSL2

git clone error “Operation not permitted” on WSL2 Shell

On a clean installed WSL2 (Windows SubSystem for Linux Gen 2), you might get error “Operation not permitted” when trying to run command git clone on the shell.

To resolve this, simple run following commands:

sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata

You might need to replace the drive letter if you hit error on other drivers.