git提交时unable to write new index file

匿名 (未验证), 22 十二月, 2021

win10   phpstorm

可能是我之前在资源管理器怎么动了这个目录

用phpstorm打开这个项目 都好的 但是提交时就报错unable to write new index file

意思是不能写入新的索引文件,百度一搜说什么磁盘空间用尽,但是我的磁盘还大的很呢

phpstorm中警告说

Invalid VCS root mapping
The directory <Project>\linuxyy is registered as a Git root, but no Git repositories were found there.

目录<Project>\linuxyy已注册为Git根目录,但未在其中找到Git存储库

我想应该是本地的.git文件夹丢失了   打开查看隐藏文件 发现.git文件夹在的

删除.idea文件夹 重开phpstorm  没用   搜索Invalid VCS root mapping 找到解决方法

      点击跳出 Invalid VCS root mapping 提示的下面的配置Configure

      移除其中的文件夹 就好了

参考:idea导入项目时报错Invalid VCS root mapping 解决方法移除即可

评论