Global Feed Post Login
Replying to Avatar Julia Evans

what would you call a git commit that can no longer be reached from any branch or reference (for example because you ran `git commit --amend` or `git rebase`), but that you can still get to from `git reflog`?

I've considered "orphan", "dangling", and "unreachable" but none of these seem right:

- orphan has another meaning in git

- dangling only refers to the "tip" commits

- "unreachable" means that you can't reach it at all

Avatar
sommerfeld 1y ago

Why dangling has to only refer to the tip?

Why can't they be considered orphans? I understand orphan as "branchless"

Reply to this note

Please Login to reply.

Discussion

No replies yet.