![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
![Só Faz] Git Error: error: cannot lock ref 'branch_a': 'branch_b'; cannot create 'branch_a' - DEV Community Só Faz] Git Error: error: cannot lock ref 'branch_a': 'branch_b'; cannot create 'branch_a' - DEV Community](https://res.cloudinary.com/practicaldev/image/fetch/s--ieEC-NOf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyfaofu1bpw2maextrjg.png)
Só Faz] Git Error: error: cannot lock ref 'branch_a': 'branch_b'; cannot create 'branch_a' - DEV Community
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
![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 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 - 博客园
![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)