0
0
Gitdevops~10 mins

Dropping and clearing stashes 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 drop the most recent stash.

Git
git stash [1]
Drag options to blanks, or click blank then click option'
Apop
Blist
Cclear
Ddrop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pop' instead of 'drop' which applies the stash before removing it.
Using 'clear' which removes all stashes, not just one.
2fill in blank
medium

Complete the command to clear all stashes at once.

Git
git stash [1]
Drag options to blanks, or click blank then click option'
Aclear
Bpop
Cdrop
Dapply
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'drop' which removes only one stash.
Using 'pop' which applies and removes the most recent stash.
3fill in blank
hard

Fix the error in the command to drop a stash by its index.

Git
git stash [1] stash@{2}
Drag options to blanks, or click blank then click option'
Aclear
Bapply
Cdrop
Dpop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pop' which applies the stash before removing it.
Using 'clear' which removes all stashes instead of one.
4fill in blank
hard

Fill both blanks to drop the stash at index 1 and then list remaining stashes.

Git
git stash [1] stash@{1} && git stash [2]
Drag options to blanks, or click blank then click option'
Adrop
Bpop
Clist
Dclear
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pop' instead of 'drop' for removing stash without applying.
Using 'clear' instead of 'list' to show stashes.
5fill in blank
hard

Fill all three blanks to drop the latest stash, clear all stashes, and then list stashes to confirm.

Git
git stash [1] && git stash [2] && git stash [3]
Drag options to blanks, or click blank then click option'
Apop
Bclear
Clist
Ddrop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pop' instead of 'drop' which applies the stash.
Using 'pop' or 'drop' instead of 'clear' to remove all stashes.