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

Git

2541 readers
10 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 1 year ago
MODERATORS
 
top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 9 points 8 months ago

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

[–] [email protected] 5 points 8 months 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.

[–] [email protected] 2 points 8 months ago (1 children)

Who hasn't frantically scrolled back in their terminal to find an orphan id.

[–] [email protected] 3 points 8 months ago

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