繁体   English   中英

如何修复错误:/mnt/x/coding/webapp/.git/config.lock 上的 chmod 失败:不允许操作致命:无法将 'core.filemode' 设置为 'false'

[英]how to fix error: chmod on /mnt/x/coding/webapp/.git/config.lock failed: Operation not permitted fatal: could not set 'core.filemode' to 'false'

almanex@LAPTOP-GHRH09TN:~$ cd /mnt/x/
almanex@LAPTOP-GHRH09TN:/mnt/x$ mkdir -p coding
almanex@LAPTOP-GHRH09TN:/mnt/x$ cd coding
almanex@LAPTOP-GHRH09TN:/mnt/x/coding$ rails new webapp
      create
      create  README.md
      create  Rakefile
      create  .ruby-version
      create  config.ru
      create  .gitignore
      create  Gemfile
         run  git init from "."
error: chmod on /mnt/x/coding/webapp/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'

您好,我正在尝试在 Rails 上创建一个应用程序,但是 chmod 存在问题,我已经在网上搜索过,但只有一个解决方案我找到并且已经尝试过(如您所见):使用 - 创建目录p 选项。 这没有帮助。 你有什么想法我该怎么做吗?

我遇到了同样的问题,但是使用 git 克隆,在命令为我修复它之前添加了一个sudo

sudo rails new webapp

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM