![Local git repo corrupted? All files recognised as new and pull failed - Cannot lock ref, reference broken - Stack Overflow Local git repo corrupted? All files recognised as new and pull failed - Cannot lock ref, reference broken - Stack Overflow](https://i.stack.imgur.com/avBD3.png)
Local git repo corrupted? All files recognised as new and pull failed - Cannot lock ref, reference broken - Stack Overflow
![已解决】git push报错:remote rejected master master cannot lock ref refs/heads/master reference already exists – 在路上 已解决】git push报错:remote rejected master master cannot lock ref refs/heads/master reference already exists – 在路上](https://www.crifan.com/files/pic/uploads/2021/03/9bcef61262914d0696e868796ca628fe.jpg)
已解决】git push报错:remote rejected master master cannot lock ref refs/heads/master reference already exists – 在路上
![Git config –global init.defaultBranch: Error cannot lock ref 'refs/remotes/origin/windows', not a directory | Learn [Solve IT] Git config –global init.defaultBranch: Error cannot lock ref 'refs/remotes/origin/windows', not a directory | Learn [Solve IT]](https://i0.wp.com/techdirectarchive.com/wp-content/uploads/2021/10/err2Capture.png?ssl=1)
Git config –global init.defaultBranch: Error cannot lock ref 'refs/remotes/origin/windows', not a directory | Learn [Solve IT]
![Git config –global init.defaultBranch: Error cannot lock ref 'refs/remotes/origin/windows', not a directory | Learn [Solve IT] Git config –global init.defaultBranch: Error cannot lock ref 'refs/remotes/origin/windows', not a directory | Learn [Solve IT]](https://i0.wp.com/techdirectarchive.com/wp-content/uploads/2021/10/git-default-branch-min.jpg?ssl=1)
Git config –global init.defaultBranch: Error cannot lock ref 'refs/remotes/origin/windows', not a directory | Learn [Solve IT]
![Meme Overflow på Twitter: "Git fatal: cannot lock ref https://t.co/hSEAnHglen #git #gitbranch #gitcheckout https://t.co/37ggAl0VrV" / Twitter Meme Overflow på Twitter: "Git fatal: cannot lock ref https://t.co/hSEAnHglen #git #gitbranch #gitcheckout https://t.co/37ggAl0VrV" / Twitter](https://pbs.twimg.com/media/E7ewAO_X0AAjB73.jpg)
Meme Overflow på Twitter: "Git fatal: cannot lock ref https://t.co/hSEAnHglen #git #gitbranch #gitcheckout https://t.co/37ggAl0VrV" / Twitter
![git - Github desktop "error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference' ( - Stack Overflow git - Github desktop "error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference' ( - Stack Overflow](https://i.stack.imgur.com/9tg8h.png)
git - Github desktop "error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference' ( - Stack Overflow
![项目记事【Git】:git pull 出错error: cannot lock ref 'refs/remotes/origin/feature/hy78861': is at d4244546c8cc3827491cc82878a23c708fd0401d but expected a6a00bf2e92620d0e06790122bab5aeee01079bf - Gerrard_Feng - 博客园 项目记事【Git】:git pull 出错error: cannot lock ref 'refs/remotes/origin/feature/hy78861': is at d4244546c8cc3827491cc82878a23c708fd0401d but expected a6a00bf2e92620d0e06790122bab5aeee01079bf - Gerrard_Feng - 博客园](https://img2020.cnblogs.com/blog/941490/202106/941490-20210607165801833-192657863.png)
项目记事【Git】:git pull 出错error: cannot lock ref 'refs/remotes/origin/feature/hy78861': is at d4244546c8cc3827491cc82878a23c708fd0401d but expected a6a00bf2e92620d0e06790122bab5aeee01079bf - Gerrard_Feng - 博客园
![git pull时报错error: cannot lock ref 'xxx': ref xxx is at (一个commitID) but expected的解决办法(unable to update local ref) - Morango - 博客园 git pull时报错error: cannot lock ref 'xxx': ref xxx is at (一个commitID) but expected的解决办法(unable to update local ref) - Morango - 博客园](https://img2020.cnblogs.com/blog/2292203/202102/2292203-20210226153400431-719890563.png)