Bird
0
0

Why does git stash not commit your changes permanently?

hard📝 Conceptual Q10 of 15
Git - Stashing
Why does git stash not commit your changes permanently?
ABecause stash saves changes temporarily to a separate area without affecting branches
BBecause stash automatically deletes changes after saving
CBecause stash commits changes but does not push them
DBecause stash merges changes into the current branch silently
Step-by-Step Solution
Solution:
  1. Step 1: Understand stash behavior

    git stash saves changes in a hidden area separate from branches, so it does not create commits.

  2. Step 2: Eliminate incorrect options

    Stash does not delete changes, commit, push, or merge silently.

  3. Final Answer:

    Because stash saves changes temporarily to a separate area without affecting branches -> Option A
  4. Quick Check:

    Stash is temporary save, not commit = D [OK]
Quick Trick: Stash is a temporary shelf, not a permanent commit [OK]
Common Mistakes:
  • Thinking stash commits changes
  • Assuming stash deletes changes
  • Believing stash merges changes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes