linux - 无法从已安装的驱动器克隆存储库
问题描述
我正在使用适用于 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 问题 3172
sudo umount /mnt/d
sudo mount -t drvfs D: /mnt/d -o metadata
推荐阅读
- mongodb - 如何在mongodb中获取特定mac地址花费的平均总时间
- ios - 何时布局 UIViewControllers 视图的子视图?
- vue.js - 在 vuetify 中使用 @submit 指令时,console.log 不起作用
- mysql - 如何使用领先或滞后在mysql中的给定行中获取上一行或下一行?
- sql-server - Tsql 是一种无需使用 sys.path 即可查找空表的方法。分区
- python - wxPython Phoenix中的渐变文本
- reactjs - 预检响应中的 Access-Control-Allow-Headers 不允许 Sails.js 请求标头字段授权
- webpack - Webpack 4 splitChunks all + multi-configuration 导致无法在 ./webpack/bootstrap 读取未定义的属性“调用”
- angular - 尝试使用 Angular TestBed 时出现奇怪的 RxJS 错误
- laravel - Intervention\Image\Exception\NotWritableException: Can't write image data to path Image\Image.php on line 143