Detached Head
Chester Wyke September 12, 2024 Updated: April 15, 2025 #gitRecovering a detached head created from a hard reset
“Accidentally” did a hard reset and lost commits I’d done.
This showed the commit with a HEAD@{1}
next to it
This moved me onto a detached head. And git gave me instructions how how to “save it”
This created a branch for my head and I just switched back to my previous branch and merged in the new_branch
. (Did in vscode don’t have command and they shouldn’t be hard to find).