poll: how confident do you feel that you know what HEAD means in git?

ok here's a different question: what do you think HEAD means in git? mostly interested in answers from folks who are not confident in their answer

(please no arguing or telling other people they're wrong, I'm just curious about people's different impressions, if people are "wrong" in some way, IMO that's git's fault for being confusing and I want to know about it)

all of these replies about what HEAD means in git are amazing and they really make me think HEAD is a pretty misleading name

another poll: how do you think of HEAD in git?

@b0rk I know it's kind-of-wrong but I voted for the second one and I hope my peers won't judge me too harshly. 😢

@Palleas the second one ("the current branch”) is definitely the "correct" answer, i'm curious about why you think it's wrong!

@b0rk isn't HEAD a pointer to the current commit when you're in detached mode? That would also mean the first option is correct sometimes 🤔

Follow

@Palleas @b0rk that's why the "usually" clause is there I assume

@Amikke @Palleas yeah the situation is a bit hard to summarize in 7 words (HEAD can also be a pointer to a commit but usually it isn’t)

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.