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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.