我正在尝试从 github 克隆项目
我试过了
git clone https://github.com/modestkdr/scrumwala.git.
但是当我得到错误
fatal: could not create work tree dir 'scrumwala.git.': Permission denied
然后我试了一下
sudo chown -R root /var/www
但存在同样的错误。任何帮助将不胜感激
最佳答案
git clone
是使用您当前的(本地 Linux)帐户完成的,而不是 root
。
所以 sudo chown -R root
不会改变任何东西。
检查与您当前路径关联的权限,并确保您(您当前的帐户)有权在其中写入。
关于linux - 致命的 : could not create work tree dir 'scrumwala.git.' : Permission denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53076959/