Some problems can occur if the .git
folder has wrong permission. Fixing this problem by setting the owner of the complete .git
folder. Sometimes it happen that another user pull and change the rights of the .git
folder or files.
To fix the problem:
chown -R youruser:yourgroup .git/