Bird
0
0

Which Git command correctly creates a stash named "work in progress"?

easy📝 Conceptual Q2 of 15
Git - Stashing
Which Git command correctly creates a stash named "work in progress"?
Agit stash add -m work in progress
Bgit stash save work in progress
Cgit stash create "work in progress"
Dgit stash push -m "work in progress"
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct syntax

    The modern command to create a named stash is git stash push -m "message".
  2. Step 2: Analyze options

    git stash push -m "work in progress" uses the correct command and quotes the message properly.
  3. Final Answer:

    git stash push -m "work in progress" -> Option D
  4. Quick Check:

    Use git stash push -m "message" [OK]
Quick Trick: Use git stash push -m "message" [OK]
Common Mistakes:
  • Using deprecated git stash save
  • Omitting quotes around multi-word messages
  • Using non-existent commands like git stash add

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes