Complete the command to create a new worktree named 'feature' based on the branch 'develop'.
git worktree add [1] developThe git worktree add command creates a new working tree. Here, feature is the directory name for the new worktree based on the develop branch.
Complete the command to list all existing worktrees.
git worktree [1]The command git worktree list shows all the worktrees currently linked to the repository.
Fix the error in the command to remove a worktree located at 'feature'.
git worktree [1] featureThe correct command to remove a worktree is git worktree remove feature. It removes the working tree and its administrative files. Use -f to force removal if the worktree has uncommitted changes or untracked files.
Fill both blanks to create a new worktree named 'hotfix' based on a new branch 'hotfix-1.0'.
git worktree add -b [1] [2]
The -b option creates a new branch named hotfix-1.0. The directory for the worktree is hotfix.
Fill all three blanks to create a worktree for branch 'release' in directory 'release-dir' and then switch to it.
git worktree add [1] [2] git -C [3] switch release
The first blank is the directory name release-dir, the second is the branch release, and the third is the directory to switch inside release-dir.