使用git命令时出现以下错误
git fetch
error: cannot open .git/FETCH_HEAD: Permission denied
在执行 chmod 时,我得到了,
sudo chmod 777 .git/FETCH_HEAD
sudo: unable to change to sudoers gid: Operation not permitted
sudo: setresuid() [0, 0, 0] -> [117, -1, -1]: Operation not permitted
请指出可能是什么问题?
最佳答案
要从“sudo”使用,您的帐户必须在 sudoer 组中。使用“usermod”将您添加到“sudo”组。或者您可以使用“su”并使用“root”运行 chown 或 chmod 命令。
关于linux - 无法使用 git 命令 - 不允许操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20262685/