(问题)git clone 项目报错 could not create work tree dir ‘xxx.xxx.xx‘: Permission denied

git clone 项目报错 :fatal: could not create work tree dir 'SubtopH.github.io': Permission denied

报错:在执行上面命令从 git 上 clone 的时候报了错误,报这个错误的原因就是正在写入或者克隆 git 仓库的目录没有写入的权限。

  • 解决办法就是先修改目录的权限然后在进行操作(执行下面指令)

//clone目录下执行
cd ../
//再执行
sudo chmod o+w dirname
  • 如果有密码的可能会提醒你输入密码,然后就可以重新执行 git clone 命令了

你可能感兴趣的:(git,git,github)