3 points

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.

permalink
report
reply
1 point

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

permalink
report
reply
2 points

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

permalink
report
parent
reply

Git

!git@programming.dev

Create post

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.

Community stats

  • 1

    Monthly active users

  • 118

    Posts

  • 127

    Comments