Loading...
Loading...
HEAD detached at abc1234Detached HEAD means your working directory is pointing to a specific commit rather than a branch. Any commits you make in this state will not belong to any branch and can be lost when you switch branches.
If you haven't made any commits in detached HEAD state, just switch back.
git checkout main
# or
git switch mainIf you made commits in detached HEAD state, create a branch to save them.
git checkout -b my-new-branch
# Now your commits are safe on the new branch