fatal: could not create work tree dir ‘xxxx’: Permission denied

fatal: could not create work tree dir ‘xxxx’: Permission denied

原因:没有权限

解决:

# 回退到当前目录的上一级
cd ..

# dirname为当前目录的名字
sudo chmod o+w dirname

作者:mhly

博客:https://www.cnblogs.com/mhly

本文采用BY-NC-SA许可协议,转载请注明出处

原文地址:https://www.cnblogs.com/mhly/p/13564171.html