Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何修复错误:chmod on/mnt/x/coding/webapp/.git/config.lock失败:不允许操作致命:无法设置';core.filemode';至';假';_Ruby On Rails_Linux_Bash_Permissions_Chmod - Fatal编程技术网

Ruby on rails 如何修复错误:chmod on/mnt/x/coding/webapp/.git/config.lock失败:不允许操作致命:无法设置';core.filemode';至';假';

Ruby on rails 如何修复错误:chmod on/mnt/x/coding/webapp/.git/config.lock失败:不允许操作致命:无法设置';core.filemode';至';假';,ruby-on-rails,linux,bash,permissions,chmod,Ruby On Rails,Linux,Bash,Permissions,Chmod,您好,我正在尝试在rails上创建一个应用程序,但是chmod有一个问题,我在网上搜索了一下,但是我只找到了一个解决方案,并且已经尝试过了(如您所见):使用-p选项创建目录。这没有帮助。你知道我该怎么做吗?欢迎来到SO-p与文件权限无关。只有当父目录不存在时,它才会生成父目录。尝试使用sudo执行命令,这是否回答了您的问题?欢迎来到SO-p与文件权限无关。只有当父目录不存在时,它才会生成父目录。尝试使用sudo执行命令,这是否回答了您的问题? almanex@LAPTOP-GHRH09TN:~$

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

欢迎来到SO<代码>-p与文件权限无关。只有当父目录不存在时,它才会生成父目录。尝试使用
sudo
执行命令,这是否回答了您的问题?欢迎来到SO<代码>-p与文件权限无关。只有当父目录不存在时,它才会生成父目录。尝试使用
sudo
执行命令,这是否回答了您的问题?
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'