A strange thing happened in my git repository. When I try to commit something to the tortoisegit window, I get all the files from the project. I canβt get them back when I pull it from the server, I get fatal: No such ref: HEAD and fatal: Cannot lock the ref 'HEAD' . All my local branches are missing. Is there any way to solve the problem?
This is not the first commit or anything else. It unexpectedly happened.
EDIT:
git branch -a says: Failed to resolve HEAD as a valid ref
git status prints all project files marked as a new file.
I changed the name of the repository folder for a while, and when I changed it, everything was wrong.
git tortoisegit
szaman Jan 31 '11 at 7:39 2011-01-31 07:39
source share