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
If you are working on the bloody Microsoft Windows the error might be due to the fact that you are "watching" the hidden files in the file explorer..that´s it!
another solution for Windows users: if you are using YandexDisk - and your .git folder under syncronisation - YandexDisk set hidden and readonly attributes after syncronisations. So, switch off YandexDisk and make .git folder and all subfolders and files NOT invisible and not readonly
This tends not to be a permissions issue.
This situation may occur when you are prompted to record a commit message when merging (for example) and you don't save and quit the text editor but you simply quit.
Git seems to assume there is still someone editting a commit message and refuses to overwrite the existing file as it would cause unexpected behaviour and loss of another commit message.
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
Simply run on your command line : chmod 777 -Rf /var/www/html/project-name/.git
If you are using Windows and you are stuck with any Git permission issues, make sure your (local) repository's .git
folder contents are not marked as hidden.
You can however hide the directory itself, just not it's contents (files, subdirectories).