git pull fails "unable to resolve reference" "unable to update local ref" - some local refs could not be updated

$ git gc --prune=now

$ git remote prune origin