当使用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"组。或者,您可以使用from"su"并使用"root"运行chown或chmod命令。