Complete the command to show the reflog history.
git [1]The git reflog command shows the history of HEAD changes, which helps recover lost commits.
Complete the command to reset HEAD to a specific reflog entry.
git reset --hard [1]HEAD@{1} refers to the previous position of HEAD in the reflog, useful for recovering lost commits.
Fix the error in the command to recover a lost commit by checking out a reflog commit.
git checkout [1]HEAD@{2} correctly references a reflog commit. Using HEAD~2 references commit parents, not reflog.
Fill both blanks to create a new branch from a lost commit found in reflog.
git branch [1] [2]
Create a new branch named recovered-branch at the reflog commit HEAD@{3} to save the lost commit.
Fill all three blanks to reset the current branch to a lost commit and clean working directory.
git reset --[1] [2] && git clean -[3]
git reset --hard HEAD@{4} resets the branch to the lost commit, and git clean -f removes untracked files to clean the working directory.