我無法在使用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