error: cannot lock 'ref/remotes/origin/blahblahblah': is at something but expected somethingelse
解决办法:
1.执行 git remote prune origin,如果不灵再执行git gc --prune=now
(gc Cleanup unnecessary files and optimize the local repository)
2. 删除.git/refs/remote/origin 文件夹(实测有时候不需要这一步也行)
Delete the Entire Folder .git/refs/remote/origin