Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Show warning when trying to commit with detached HEAD #487
Often when I work in submodules I encounter a situation where HEAD lands in a detached state but still points to the same commit as one of my local branches. This becomes disturbing when I forget to switch to said branch before performing commit. Then, after committing I always have to return to branch, show reflog and cherry-pick commit created on detached HEAD.
It would be helpful for Fork to show a warning when someone tries to commit while HEAD is detached to avoid that situation.