why do I care about orphans? fuck them orphans. I'm the one who made them orphans anyways
this post was submitted on 21 Jan 2024
52 points (100.0% liked)
Git
2909 readers
1 users here now
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Resources
Rules
- Follow programming.dev rules
- Be excellent to each other, no hostility towards users for any reason
- No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.
founded 1 year ago
MODERATORS
That's a really good explanation. I would just add that I find easier to search for orphans with git log --graph --reflog
than using `git reflog directly, especially if it's one of the top entries in the reflog.
Who hasn't frantically scrolled back in their terminal to find an orphan id.
You should check out git reflog
if you don't know about it already. It allows you to view the history of commit changes which is very handy if you want to undo an --amend or rebase for example