50
submitted 2 years ago by mac@programming.dev to c/git@programming.dev
top 4 comments
sorted by: hot top new old
[-] match@pawb.social 9 points 2 years ago

why do I care about orphans? fuck them orphans. I'm the one who made them orphans anyways

[-] robinm@programming.dev 5 points 2 years ago

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.

[-] UFODivebomb@programming.dev 2 points 2 years ago

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

this post was submitted on 21 Jan 2024
50 points (100.0% liked)

Git

4740 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

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. 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 3 years ago
MODERATORS