Complete the command to create a new branch named 'feature'.
git branch [1]The git branch command followed by the branch name creates a new branch.
Complete the command to list all branches in the repository.
git branch [1]-d which deletes a branch.-m which renames a branch.The -a option lists all branches, including remote ones.
Fix the error in the command to create a branch named 'dev'.
git [1] devcheckout to create a branch without -b.commit or merge which are unrelated.To create a branch, use git branch <branch-name>. checkout switches branches but does not create one.
Fill both blanks to create a new branch 'test' and switch to it immediately.
git [1] -[2] test
branch with -c which is invalid.The command git checkout -b test creates and switches to the 'test' branch.
Fill all three blanks to delete a local branch named 'old-feature' safely.
git [1] -[2] [3]
-D which forces deletion.git checkout.Use git branch -d old-feature to delete a branch safely (only if merged).
