Sublime Forum

Detached HEAD

#1

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 :wink:)

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. :stuck_out_tongue:

0 Likes

#2

The only functionality I’m aware of that doesn’t work in a detached head state is the various Edit Commit operations, but please let me know if there’s anything else. With regards to edit commit, that should be resolved in the next dev build.

0 Likes

#3

That is the only functionality that I’m aware of that doesn’t work in a detached HEAD state as well :slight_smile: But I’ll keep my eye out!

I wanted to confirm the desire to support a detached HEAD state before I carried on pestering you guys about it, so thank you for responding! You guys are awesome!

0 Likes