I rarely spend much time on any given branch and instead bounce around between many remote branches. This means that the majority of the time, I’m in a detached HEAD state.
The problem I’ve been noticing is that when I do stop to make a quick modification, most of Sublime Merge’s features complain and refuse to function due to my detached HEAD. Even some of the newer features such as “Squash Selected Commits” result in a “Error: cannot modify commits with a detached head” message.
Is there a technical challenge to this that I’m unaware of or is this more due to the treacherousness that can come from working in a detached HEAD? If the latter, would it be possible to add a setting that can be toggled to allow these features in a detached HEAD? (I can use git reflog
if I do something terrible )
Create branch temporary
, checkout temporary
, … do stuff …, checkout commit, delete temporary
is fun and all as a workaround, but most of the time I just drop back to running git
commands directly.