Cannot update the ref refs-remotes-origin-master – git server

Saturday, 27. October 2012

Every now and then you may encounter the following errors while pushing stuff to your git server.

error: unable to create directory for .git/logs/refs/remotes/origin/master
error: Cannot update the ref 'refs/remotes/origin/master'.

The underlining issue here is with your folder permissions where your local (bare) repository dwells. Update permissions on .git folder or use a user account with write permissions on this folder.


Leave a Reply

You must be logged in to post a comment.