Loading tutorials
git reflog prints so you can pick the right entry to return to.2 min readgit reflog output. Here you will learn that Git keeps more than one reflog, and why that matters when you hunt for lost work.2 min readgit reflog output, know that HEAD and branches are pointers to commits, and have a terminal open in a repository with some history.2 min readgit reflog output and use selectors such as HEAD@{1}. It also assumes you know that branches and HEAD are pointers to commits.2 min readgit reflog output and use HEAD@{n} selectors from earlier chapters.2 min readgit reflog output and using selectors.3 min readgit reflog output and use selectors such as HEAD@{1}. Rebase and amend both rewrite history. They create new commits and move a branch to them. The old commits are not deleted right away, so the reflog can bring them b3 min readgit reflog output and use HEAD@{n} selectors. It covers one case: commits made while HEAD points at a commit instead of a branch.3 min readgit reflog output. It covers when Git deletes reflog entries and how to check or change those limits.3 min readgit reflog output, use HEAD@{n} selectors, and have recovered a commit after git reset --hard. The reflog is a safety net with holes. Knowing where they are tells you when to stop searching and what to try next.3 min readgit reflog output, create a branch from a hash, and know that a branch is a pointer to a commit. Sometimes the reflog has no useful entry. The work may have been committed on a branch whose reflog was deleted along with the branch, or the entry may have expired. T3 min readgit reflog, using selectors like HEAD@{1}, and recovering from git reset --hard. Here the goal changes from rescuing work to making rescue cheap.3 min read