Hello I am getting the following errors
error: unable to resolve reference HEAD: No such file or directory
fatal: cannot lock HEAD ref
Regards
Deepak Bhatia
Hi Deepak,
This happens when your HEAD reference is missing. You can create a new head by doing the following:
echo ref: refs/heads/master >.git/HEAD
You can now continue using git commands as before to try restore your repo and branches.
Some more info can be found on this page.
Cheers,
Ivan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.