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
Speaking from a PC user - Reboot.
Honestly, it worked for me. I've solved two strange git issues I thought were corruptions this way.