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