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

后端 未结 13 1729
遥遥无期
遥遥无期 2020-12-12 19:08

I am trying to deploy octopress on github pages. I followed these instructions:

http://octopress.org/docs/deploying/github/

It all worked well until the comm

13条回答
  •  离开以前
    2020-12-12 19:40

    chmod 664 the file .git/COMMIT_EDITMSG gives it group write permissions.

    In my situation the file was owned by another user who was part of my development group. Giving it group write permissions solved it.

    The .git directory should be in the root of your repository.

    Command (assuming you are in the .git directory):

    chmod 664 COMMIT_EDITMSG 
    

提交回复
热议问题