Error: git pull fails “unable to resolve reference” “unable to update local ref”

1.4K    Asked by AnushaAcharya in SQL Server , Asked on Jul 5, 2021

 When I run a simple git pull command, I get this error:

unable to resolve reference refs/remotes/origin
Answered by Faith Davidson

To solve git unable to update local ref:

This happens when there are unnecessary files in your system, so clean-up your local repository with the following commands:

$ git gc --prune=now
$ git remote prune origin

Hope this answer helps you!



Your Answer

Interviews

Parent Categories