![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
![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... - 简书
![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)
github - Git cannot lock ref 'HEAD': unable to resolve reference HEAD when i try to commit - Stack Overflow
![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)