Complete the command to switch to an existing branch named 'feature'.
git switch [1]The git switch command followed by the branch name switches to that branch.
Complete the command to create and switch to a new branch named 'bugfix'.
git switch -c [1]-c.The -c option creates a new branch and switches to it. Here, the new branch is 'bugfix'.
Fix the error in the command to switch to branch 'release'.
git [1] releasecommit or merge instead of switch.checkout when the task asks for switch.The modern command to switch branches is git switch. Using checkout still works but is older.
Fill both blanks to create and switch to a new branch named 'hotfix' starting from 'develop'.
git switch -c [1] [2]
The -c option creates a new branch. The first blank is the new branch name 'hotfix'. The second blank is the starting point branch 'develop'.
Fill all three blanks to switch to branch 'test', create it if missing, and force the switch discarding local changes.
git switch [1] [2] [3]
--discard-changes which is not a valid git switch option.-c creates the branch if it doesn't exist, -f forces the switch discarding local changes, and test is the branch name.