Complete the command to switch to an existing branch named 'feature'.
git [1] featureThe git checkout command is used to switch branches.
Complete the command to create and switch to a new branch named 'bugfix'.
git [1] -b bugfixThe git checkout -b command creates a new branch and switches to it immediately.
Fix the error in the command to list all branches including remote ones.
git [1] -aThe git branch -a command lists all local and remote branches.
Fill both blanks to create a new branch 'release' and push it to the remote repository.
git [1] -b release && git [2] -u origin release
First, git checkout -b release creates and switches to the new branch. Then, git push -u origin release pushes it to the remote and sets upstream tracking.
Fill all three blanks to create a dictionary comprehension that maps branch names to their last commit hash, filtering only branches starting with 'feature'.
{branch[1]: commits[branch] for branch in branches if branch[2]('feature') and commits[branch][3] ''}The comprehension converts branch names to uppercase keys, filters branches starting with 'feature', and includes only those with a non-empty commit hash.