git commit -m "message"

DeepakBhatia June 19, 2013

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

1 answer

1 vote
Ivan Maduro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2013

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events