Kur*_*rer 3 linux git ubuntu github windows-subsystem-for-linux
我使用的是Windows Subsystem for Linux(WSL),并且安装了microSD卡,过去可以将存储库克隆到其中。但是,最近,当我尝试从中克隆时,我收到此错误/mnt/d/:
Cloning into 'your_repo'...
error: chmod on /mnt/d/your_repo/.git/config.lock failed: Operation not permitted
error: chmod on /mnt/d/your_repo/.git/config.lock failed: Operation not permitted
error: chmod on /mnt/d/your_repo/.git/config.lock failed: Operation not permitted
error: chmod on /mnt/d/your_repo/.git/config.lock failed: Operation not permitted
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
如果我切换到任何目录,/mnt/c/都可以完美克隆。克隆时,如果有帮助,可以使用SSH。谢谢。
Von*_*onC 11
考虑到对Chmod / Chown WSL改进的更改,您可以尝试,如WSL问题3172中所述
sudo umount /mnt/d
sudo mount -t drvfs D: /mnt/d -o metadata
Run Code Online (Sandbox Code Playgroud)