What does 'detached HEAD' mean in Git and how do I get out of it safely?
Asked 6d agoby IT-QA1 answer
gitversion-control
I ran `git checkout <some-commit-hash>` to look at old code and now Git says I'm in 'detached HEAD state'. I made a couple of commits here. How do I keep them and get back to a normal branch?