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 upShow warning when trying to commit with detached HEAD #487
Comments
This comment has been minimized.
This comment has been minimized.
What a great idea! Indeed! |
DanPristupov
added this to the 1.0.73 milestone
Dec 21, 2018
This comment has been minimized.
This comment has been minimized.
This is already available in 1.0.73 prerelease |
DanPristupov
closed this
Feb 1, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tunous commentedDec 21, 2018
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.