Fix: Git Pull Error: unable to resolve reference refs/remotes/origin/master: reference broken


% 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
Remove git - refs - remotes - origin - master

Once done, do a git fetch

% git fetch
-


Have Questions? Post them here!


Top Hashtags: