I only have branch master and im getting this error every time i try to \"git pull\":
error: Couldn\'t set refs/remotes/origin/master
From /var/lib/git/xxx/p
Try to use this command in your git repository root folder:
rm .git/logs/refs/remotes/origin/master
Clone the repository again, and copy the .git folder in your broken project.
This error with (unable to update local ref) can also happen if you have changed passwords recently and there's some fancy stuff integrating your Windows and Linux logins.
I had the same issue on my debian server as the disk is full. No temp file could be created as no space left on device. After cleaning some files, it worked out fine.
Ensure the user that is executing the git pull
is the same user that created the repository. The file permissions are incorrect.
Remove file .git/logs/refs/remotes/origin/[Locked Branch Name]