0
0
Gitdevops~10 mins

Listing worktrees in Git - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to list all Git worktrees.

Git
git worktree [1]
Drag options to blanks, or click blank then click option'
Astatus
Bworktree
Cshow
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git show worktree list' which is invalid.
Using 'git status worktree' which shows status, not worktrees.
2fill in blank
medium

Complete the command to list worktrees with their paths.

Git
git worktree [1]
Drag options to blanks, or click blank then click option'
Aadd
Bremove
Clist
Dprune
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git worktree add' which adds a new worktree.
Using 'git worktree prune' which cleans up stale worktrees.
3fill in blank
hard

Fix the error in the command to list worktrees.

Git
git [1] list
Drag options to blanks, or click blank then click option'
Aworktree
Bworktrees
Clist
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git worktrees list' which is invalid.
Using 'git status list' which does not list worktrees.
4fill in blank
hard

Fill both blanks to complete the command that lists worktrees with detailed info.

Git
git [1] [2]
Drag options to blanks, or click blank then click option'
Aworktree
Blist
C--verbose
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git list worktree' which is invalid order.
Using 'git worktree status' which does not list worktrees.
5fill in blank
hard

Fill all three blanks to create a command that lists worktrees with verbose output.

Git
git [1] [2] [3]
Drag options to blanks, or click blank then click option'
Aworktree
Blist
C--branch
D--verbose
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--branch' instead of '--verbose'.
Using 'git list worktree --verbose' which is invalid.