Git - StashingWhat does the git stash command do?ACommits your changes permanently to the repositoryBDeletes all your untracked filesCTemporarily saves your uncommitted changes to switch tasksDCreates a new branch from the current stateCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand the purpose of git stashThe command saves your current uncommitted changes temporarily without committing them.Step 2: Compare with other git commandsUnlike commit, stash does not save changes permanently; it allows switching tasks without losing work.Final Answer:Temporarily saves your uncommitted changes to switch tasks -> Option CQuick Check:git stash = temporary save [OK]Quick Trick: Stash saves changes temporarily without committing [OK]Common Mistakes:Thinking stash commits changes permanentlyConfusing stash with branch creationAssuming stash deletes files
Master "Stashing" in Git9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Git Quizzes Cherry-Pick and Advanced Merging - Why cherry-pick is useful - Quiz 6medium Cherry-Pick and Advanced Merging - Merge strategies overview - Quiz 4medium Rebasing - Interactive rebase (git rebase -i) - Quiz 4medium Rebasing - Editing commit messages with rebase - Quiz 1easy Rebasing - git rebase basic usage - Quiz 4medium Remote Repositories - Deleting remote branches - Quiz 7medium Remote Repositories - Deleting remote branches - Quiz 12easy Remote Repositories - Tracking branches concept - Quiz 15hard Remote Repositories - Why remotes enable collaboration - Quiz 4medium Remote Repositories - git remote add origin - Quiz 14medium