Bird
0
0

Which of the following is the correct syntax to view all stashes in Git?

easy📝 Syntax Q12 of 15
Git - Stashing
Which of the following is the correct syntax to view all stashes in Git?
Agit stash show
Bgit stash list
Cgit stash view
Dgit stash display
Step-by-Step Solution
Solution:
  1. Step 1: Recall the exact command to list stashes

    The correct command to list all stashes is git stash list.
  2. Step 2: Verify other options are invalid

    git stash show shows details of one stash, not the list; git stash view and git stash display are not valid Git commands.
  3. Final Answer:

    git stash list -> Option B
  4. Quick Check:

    List stashes = git stash list [OK]
Quick Trick: Remember: 'list' shows all stashes, not 'show' or 'view' [OK]
Common Mistakes:
  • Using 'git stash show' to list all stashes
  • Typing 'git stash view' which is invalid
  • Confusing 'list' with 'show'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes