0
0
Gitdevops~5 mins

git stash list to view stashes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Agit stash apply
Bgit stash show
Cgit stash list
Dgit stash save
What does stash@{0} represent in git stash list?
AThe most recent stash
BThe oldest stash
CA branch name
DA commit hash
Does git stash list show stashes from only the current branch?
AOnly stashes older than 1 day
BYes, only current branch stashes
COnly stashes from remote branches
DNo, it shows all stashes in the repo
What extra info does git stash list show besides stash names?
ARemote repository URL
BBranch and message describing changes
CCommit author email
DFile sizes
Why check git stash list before applying a stash?
ATo pick the correct stash to apply
BTo delete all stashes
CTo merge branches
DTo commit changes
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.