linux - WSL2 中克隆的 git 存储库不断消失。这是为什么?

标签 linux git ubuntu gitlab wsl-2

我已经使用 Ubuntu 发行版在 WSL2 中从 Gitlab 克隆了一个 git 存储库,当我在另一次启动 WSL2 时它就消失了。
谁能告诉我为什么会发生这种情况?

最佳答案

存在与 WSL2 and files disappearing 相关的持续问题
它可能取决于您的操作系统(W10?哪个版本?W11?)以及您是否应用了最新的 Windows 更新。
先检查%APPDATA%/Local/Packages/如果您看到您的文件(在重新启动 WSL2 之前)。
并检查,如 issue 6221 , 如果 rootfs仍然可见。
例如::\Users\<user>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs但是,作为 NotTheDr01ds评论,那将只是 WSL1。
对于 WSL2,请参阅 microsoft/WSL issue 4699 "WSL 2 should automatically release disk space back to the host OS" .

关于linux - WSL2 中克隆的 git 存储库不断消失。这是为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70845158/

相关文章:

php - 不能用find和exec移动?

linux - 一台 Linux 服务器中的 nginx 2 服务器 block

git - 如何将nodejs缩回特定版本的V8?

c++ - 在ubuntu中使用Opencv编译警告

linux - 配置 linux 启动器以传递变量

python - 哪个 linux 发行版更适合 Python web 开发?

git - 如何防止在 bitbucket 上的 git 存储库中推送 -f?

git - *在*提交之前更改一个特定提交的名称、电子邮件和/或日期

linux - 删除 python3.4 后,ubuntu 14.04 中没有显示仪表板/终端/侧边栏

JavaScript 不在外部域上执行