You are in 'detached HEAD' state.
You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
Conversation
Notices
-
Embed this notice
fraggle (fraggle@octodon.social)'s status on Saturday, 10-Jun-2023 14:04:43 JST fraggle - silverwizard likes this.
-
Embed this notice
fraggle (fraggle@octodon.social)'s status on Saturday, 10-Jun-2023 14:04:42 JST fraggle big overlap between git users and star trek fans, surprising nobody
clacke likes this. -
Embed this notice
silverwizard (silverwizard@convenient.email)'s status on Thursday, 28-Sep-2023 22:02:33 JST silverwizard @fraggle Well now I gotta write a text adventure -
Embed this notice
clacke (clacke@libranet.de)'s status on Thursday, 28-Sep-2023 23:06:03 JST clacke @Precz @fraggle Same. -
Embed this notice
Paweł Precz (precz@mastodon.social)'s status on Thursday, 28-Sep-2023 23:06:04 JST Paweł Precz @fraggle working on detached HEAD is a great way to avoid creating local branches. I don't need them anyway. Been working like this for years.
-
Embed this notice
clacke (clacke@libranet.de)'s status on Friday, 23-Feb-2024 14:02:41 JST clacke @leean00 @fraggle I'm under no illusion about git's usability, the error message is not awesome and neither are the commands to get into a named branch, but if you've been in this state more than once unwillingly, the way out is literally one checkout command, regardless if you want to name your current state and make it a branch or you want to discard it and switch to an existing branch. -
Embed this notice
Andrew Leer (leean00@discuss.systems)'s status on Friday, 23-Feb-2024 14:02:42 JST Andrew Leer @fraggle Oh this state drives me crazy when I'm coding; it's a valid state nothing wrong, but trying to get out of it...
-
Embed this notice
clacke (clacke@libranet.de)'s status on Friday, 23-Feb-2024 14:02:49 JST clacke @urologi @fraggle You checked out a tag or a literal commit hash rather than a named branch. -
Embed this notice
Urologi (urologi@mstdn.social)'s status on Friday, 23-Feb-2024 14:02:51 JST Urologi @fraggle
And I'm always confused how it happened -
Embed this notice
Dustin Lang (dstndstn@hachyderm.io)'s status on Friday, 23-Feb-2024 14:03:00 JST Dustin Lang @fraggle it's, uh, interesting that having a detached head is like not even close to the worst thing that can happen on a daily basis using git
clacke likes this. -
Embed this notice
Diego 🌲 (diegocrespo@mastodon.social)'s status on Friday, 23-Feb-2024 14:03:03 JST Diego 🌲 @fraggle this is when I just nuke the repo and start over
-
Embed this notice
clacke (clacke@libranet.de)'s status on Friday, 23-Feb-2024 14:03:03 JST clacke @DiegoCrespo @fraggle No need, there's nothing wrong. Go to the branch you thought you were in. -
Embed this notice
Kit Rhett Aultman (roadriverrail@signs.codes)'s status on Friday, 12-Apr-2024 05:16:08 JST Kit Rhett Aultman @fraggle You are likely to be eaten by a grue.