I'm using NetBeans 7.4 and local GIT repository. When I tried to check in my last changes I've got the message saying that HEAD is detached in repository, do I want to check in. I've chose Yes. After that, I switched back to my main branch, but I couldn't find my last check in there. Anonymous branch that appeared before, disappeared. I am not able to find my last check in. Is there any way to find it?
Asked
Active
Viewed 634 times
1
-
Git support in Netbeans is good, but a bit weird and confusing, especially if you use Git ocasionally as opposed to daily usage. I recommend command-line usage for most operations (commits, pulls, pushes, switching branches etc). – Radu Murzea Feb 16 '14 at 13:02
1 Answers
0
You can force that last commit back in command line, using git reflog.
You will be able to find the SHA1 of that commit you did before switching back to your main branch, and you can make a branch on top of that SHA1.