Git · Junior · Question 32 of 75
What does git stash do?
- 1Commits all changes to a hidden branch on the remote
- ✓Correct answer: Saves uncommitted changes aside and cleans the working tree
- 3Deletes every untracked file in the project
Explanation
Use it to switch tasks quickly; git stash pop reapplies the changes. By default untracked files aren't stashed; add -u for them.