Bird
0
0

Given the following output from git stash list:

medium📝 Command Output Q13 of 15
Git - Stashing
Given the following output from git stash list:
stash@{0}: WIP on main: 123abc Fix header
stash@{1}: WIP on feature: 456def Add login
stash@{2}: WIP on main: 789ghi Update footer
What is the message of the stash at stash@{1}?
AAdd login
BFix header
CUpdate footer
DWIP on main
Step-by-Step Solution
Solution:
  1. Step 1: Identify the stash index and message

    The stash at stash@{1} shows the message after the colon, which is 'Add login'.
  2. Step 2: Confirm the message corresponds to the correct stash

    Other stashes have different messages: stash@{0} is 'Fix header', stash@{2} is 'Update footer'.
  3. Final Answer:

    Add login -> Option A
  4. Quick Check:

    Message at stash@{1} = 'Add login' [OK]
Quick Trick: Read stash index carefully; message follows the colon [OK]
Common Mistakes:
  • Mixing stash indexes and messages
  • Choosing the branch name instead of message
  • Ignoring the stash number format

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes