Bird
0
0

Which of the following is the correct syntax to create a named stash with the message "update README"?

easy📝 Syntax Q3 of 15
Git - Stashing
Which of the following is the correct syntax to create a named stash with the message "update README"?
Agit stash push -m "update README"
Bgit stash push -message "update README"
Cgit stash push message "update README"
Dgit stash push -msg "update README"
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct flag for naming stash

    The flag to add a message is -m, not -message, message, or -msg.
  2. Step 2: Verify the command structure

    git stash push -m "update README" uses git stash push -m "update README", which is correct syntax.
  3. Final Answer:

    git stash push -m "update README" -> Option A
  4. Quick Check:

    Correct flag for stash message = -m [OK]
Quick Trick: Use -m flag for stash message [OK]
Common Mistakes:
  • Using incorrect flags like -message or -msg
  • Missing quotes around message
  • Using wrong command order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes