New commits made here are not on any branch, so they are easy to lose when you switch away. A submodule checkout is always detached at first.
Detached HEAD
The state where HEAD points straight at a commit instead of a branch name.
New commits made here are not on any branch, so they are easy to lose when you switch away. A submodule checkout is always detached at first.