簡體   English   中英

無法從安裝的驅動器克隆存儲庫

[英]Can't clone repository from mounted drive

我正在使用適用於 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

我在全新的 WSL Unbuntu 安裝中看到了該錯誤。 我當然不能sudo umount /mnt/c ,但是重新啟動,一切都很好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM