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 

 

https://github.com/desktop/desktop/issues/5438

posted on 2020-05-28 09:12  ximenchuixie  阅读(1111)  评论(0编辑  收藏  举报