Complete the command to list all recent commits including deleted branches.
git reflog [1]The git reflog --all command shows the history of all references, including deleted branches.
Complete the command to create a new branch from a commit hash.
git branch [1] <commit-hash>To recover a deleted branch, you create a new branch with a name pointing to the commit hash.
Fix the error in the command to checkout a recovered branch.
git [1] <branch-name>To switch to a branch, use git checkout <branch-name>.
Fill both blanks to create and switch to a new branch from a commit hash.
git [1] -b [2] <commit-hash>
The command git checkout -b new-branch <commit-hash> creates and switches to a new branch at the given commit.
Fill all three blanks to recover a deleted branch by finding the commit hash, creating the branch, and switching to it.
git reflog [1] && git branch [2] [3] && git checkout [2]
First, git reflog --all shows all commits. Then, git branch <branch-name> <commit-hash> creates the branch. Finally, git checkout <branch-name> switches to it.