Bird
0
0

What does the git stash command do?

easy📝 Conceptual Q11 of 15
Git - Stashing
What does the git stash command do?
ACommits your changes permanently to the repository
BDeletes all your untracked files
CTemporarily saves your uncommitted changes to switch tasks
DCreates a new branch from the current state
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of git stash

    The command saves your current uncommitted changes temporarily without committing them.
  2. Step 2: Compare with other git commands

    Unlike commit, stash does not save changes permanently; it allows switching tasks without losing work.
  3. Final Answer:

    Temporarily saves your uncommitted changes to switch tasks -> Option C
  4. Quick Check:

    git stash = temporary save [OK]
Quick Trick: Stash saves changes temporarily without committing [OK]
Common Mistakes:
  • Thinking stash commits changes permanently
  • Confusing stash with branch creation
  • Assuming stash deletes files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes