Recall & Review
beginner
What is the purpose of
git stash push -m "message" <file>?It saves changes from only the specified file(s) into a new stash with a message, leaving other changes unstashed.
Click to reveal answer
beginner
How do you stash changes from only one file without affecting others?
Use
git stash push <filename> to stash changes from that file only.Click to reveal answer
beginner
What happens to unstaged changes in other files when you stash specific files?
They remain in your working directory and are not stashed or removed.
Click to reveal answer
intermediate
Can you stash changes from multiple specific files at once?
Yes, by listing multiple files after
git stash push, like git stash push file1 file2.Click to reveal answer
beginner
What command shows the list of all stashes including those with specific files?
Use
git stash list to see all saved stashes with their messages.Click to reveal answer
Which command stashes changes only from a specific file named
app.js?✗ Incorrect
The correct syntax to stash specific files is
git stash push <filename>.What happens to other unstaged files when you stash a specific file?
✗ Incorrect
Only the specified files are stashed; other files remain as they are.
How can you add a message to a stash when stashing specific files?
✗ Incorrect
Use
git stash push -m "message" <files> to add a message.Which command lists all stashes including those with specific files?
✗ Incorrect
git stash list shows all saved stashes.Can you stash changes from multiple files at once?
✗ Incorrect
You can stash multiple files by listing them after
git stash push.Explain how to stash changes from only one or more specific files in git.
Think about how to tell git exactly which files to stash.
You got /3 concepts.
Describe what happens to unstaged changes in files not included when stashing specific files.
Consider what git does only with the files you specify.
You got /3 concepts.