Recall & Review
beginner
What does the command
git stash list do?It shows a list of all the saved stashes in your Git repository. Each stash is a snapshot of your changes saved for later use.
Click to reveal answer
beginner
How can you identify a specific stash in the
git stash list output?Each stash has a name like
stash@{0}, stash@{1}, etc., along with a short description of the branch and commit it was saved from.Click to reveal answer
beginner
Why would you use
git stash list before applying a stash?To see all your saved stashes and choose the correct one to apply or inspect, avoiding mistakes.
Click to reveal answer
beginner
What information does each entry in
git stash list provide?It shows the stash name, the branch it was created on, and a short message describing the changes saved.
Click to reveal answer
beginner
Can
git stash list show stashes from all branches?Yes, it shows all stashes saved in the repository, regardless of the branch they were created on.
Click to reveal answer
What command lists all saved stashes in Git?
✗ Incorrect
git stash list shows all saved stashes. Other commands do different stash actions.
What does
stash@{0} represent in git stash list?✗ Incorrect
stash@{0} is the newest stash saved.
Does
git stash list show stashes from only the current branch?✗ Incorrect
It lists all stashes saved in the repository, no matter the branch.
What extra info does
git stash list show besides stash names?✗ Incorrect
The list shows the branch and a short message about the stash.
Why check
git stash list before applying a stash?✗ Incorrect
Listing stashes helps you choose the right one to apply or inspect.
Explain what
git stash list shows and why it is useful.Think about how you find saved work snapshots in Git.
You got /5 concepts.
Describe how you would identify and select a stash from the list to restore your changes.
Focus on the stash naming and description.
You got /4 concepts.