About fatal: could not open '.git/COMMIT_EDITMSG': Permission denied

不羁的心 提交于 2019-12-12 02:23:38

问题


I am having the same problem like:

this thread

when I tried the given answer:

chown --recursive $(id -u) .

in my git bash, and after I tried to commit I still have the problem. If I run:

chown --recursive $(id -u) 

(Notice that the dot is not there) I got the following message:

chown: missing operand after '197609'

What does it mean? That the missing operand is the dot?

Why "chown --recursive $(id -u) ." is not solving the problem? What other things can I do?

Thanks for your help

来源:https://stackoverflow.com/questions/33351275/about-fatal-could-not-open-git-commit-editmsg-permission-denied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!