New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show warning when trying to commit with detached HEAD #487

Closed
Tunous opened this Issue Dec 21, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@Tunous
Copy link

Tunous commented Dec 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.

@DanPristupov

This comment has been minimized.

Copy link
Contributor

DanPristupov commented Dec 21, 2018

What a great idea! Indeed!

@DanPristupov DanPristupov added this to the 1.0.73 milestone Dec 21, 2018

@DanPristupov

This comment has been minimized.

Copy link
Contributor

DanPristupov commented Jan 30, 2019

This is already available in 1.0.73 prerelease

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment