![How to resove issue of Error: cannot lock ref 'refs/remotes/origin/bugfix/branch' : unable to create - YouTube How to resove issue of Error: cannot lock ref 'refs/remotes/origin/bugfix/branch' : unable to create - YouTube](https://i.ytimg.com/vi/K3huavtW0Hs/sddefault.jpg)
How to resove issue of Error: cannot lock ref 'refs/remotes/origin/bugfix/branch' : unable to create - YouTube
![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 config -global init.defaultBranch: Error cannot lock ref 'refs/remotes/origin/windows', not a directory - TechDirectArchive Git config -global init.defaultBranch: Error cannot lock ref 'refs/remotes/origin/windows', not a directory - TechDirectArchive](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 - TechDirectArchive
git pull: error: cannot lock ref 'refs/remotes/origin/xxx': unable to resolve reference 'refs/rem... - 简书
![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-20210226151852817-34282749.png)
git pull时报错error: cannot lock ref 'xxx': ref xxx is at (一个commitID) but expected的解决办法(unable to update local ref) - Morango - 博客园
![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
![github - Git cannot lock ref 'HEAD': unable to resolve reference HEAD when i try to commit - Stack Overflow github - Git cannot lock ref 'HEAD': unable to resolve reference HEAD when i try to commit - Stack Overflow](https://i.stack.imgur.com/kxIEP.png)