我正在使用Linux的Windows子系统(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.
如果我切换到
/mnt/c/
上的任何目录,则可以完全克隆。克隆时,如果有帮助,可以使用SSH。谢谢。 最佳答案
考虑到对Chmod/Chown WSL Improvements的更改,您可以尝试像WSL issue 3172一样
sudo umount /mnt/d
sudo mount -t drvfs D: /mnt/d -o metadata
关于linux - 无法从已安装的驱动器克隆存储库,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/52846489/