Git · Senior · Question 72 of 76

Why is git stash risky as long-term storage?

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.

Further reading

Problem with a question

Git · Senior · question 72

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz