% git pull
error: cannot lock ref 'refs/remotes/origin/master':
unable to resolve reference 'refs/remotes/origin/master': reference broken
You may get the above error when trying to pull a get repository from the origin.
Fix: Error: Unable to resolve reference
Remove the below folder from your local get repository us the rm command.
% rm .git/refs/remotes/origin/master

Once done, do a git fetch
% git fetch
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!