【问题标题】: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'如何修复错误:/mnt/x/coding/webapp/.git/config.lock 上的 chmod 失败:不允许操作致命:无法将 'core.filemode' 设置为 'false'
【发布时间】:2023-03-28 23:15:01
【问题描述】:
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 选项的目录。这没有帮助。你有什么想法吗?

【问题讨论】:

标签: ruby-on-rails linux bash permissions chmod


【解决方案1】:

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

sudo rails new webapp

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-09-09
    • 1970-01-01
    • 2021-12-03
    • 2017-12-06
    • 2012-12-06
    • 1970-01-01
    • 2020-01-31
    相关资源
    最近更新 更多