Hacker News new | ask | show | jobs
by eterm 1081 days ago
They don't, because they have a name (that also happens to be a hash).

They lack a convenient name. You can go to any commit and "turn it into" a branch if you so wish by "promoting" it to a branch.

My point is that there's no such thing as "avoiding branches" in git. Or least, you can't avoid the "downsides" of branches as some perceive it.

Those issues are still present with commits, just without the convenience of good naming.

That is to say, and I should have made it more clear in my initial comment, that trying to avoid branches is pointless and indeed counterproductive. You still logically have branches, without the convenience.