Bird
0
0

After running git stash push -m "temp fix" -u, what will git stash list show?

medium📝 Command Output Q5 of 15
Git - Stashing
After running git stash push -m "temp fix" -u, what will git stash list show?
Astash@{0}: On branch_name
Bstash@{0}: On branch_name: temp fix
Cstash@{0}: On branch_name: temp fix (untracked files included)
Dstash@{0}: temp fix (including untracked files)
Step-by-Step Solution
Solution:
  1. Step 1: Understand the -u flag effect

    The -u flag includes untracked files in the stash but does not change the stash list message format.
  2. Step 2: Check git stash list output format

    The list shows stash index, branch, and message only, without extra notes about untracked files.
  3. Final Answer:

    stash@{0}: On branch_name: temp fix -> Option B
  4. Quick Check:

    Untracked files included but stash list message unchanged [OK]
Quick Trick: Untracked files included but stash list message stays simple [OK]
Common Mistakes:
  • Expecting stash list to mention untracked files
  • Confusing stash message with stash content details
  • Assuming -u changes stash message

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes