Git · Senior · Question 72 of 76
Why is git stash risky as long-term storage?
- 1Stashed changes are pushed to everyone
- 2Stashes expire after 24 hours automatically
- ✓Correct answer: Stashes are local and easy to drop or lose
Explanation
Stashes aren't pushed and live only in your repository; git stash clear or a new clone loses them. Use a WIP commit on a branch for anything you care about.