The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

git commit -m "message"

DeepakBhatia
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events