我无法在使用git时在我的项目中提交更改。Git commit问题:无法附加到.git/
这里是我的终端:
[email protected]:~/menu_operations$ git commit -m "initial commit"
error: Unable to append to .git/logs/refs/heads/7.x-1.x: Permission denied
fatal: cannot update HEAD ref
menu_operations
是我的项目的名称。
我不知道我有什么权限允许。 任何人都可以帮忙吗?
感谢你们俩。你是对的。命令sudo chown帮了忙,现在没事了。 Tomas Teicher –
对于Mac用户:'sudo chown -R $ UID .git /'。 –
@manakor,但它不会“也显示任何文件,它改变了所有者”,当然。你可以用'find找到它。 -not -uid $ UID -ls -exec chown $ UID {} +'。 – sehe