Git TutorialLesson 10Free preview
Git Stash
This lesson is part of Git · All levels
Summary
The git stash command saves unfinished changes to the stack temporarily so that the working directory is cleaned back and you can move the branch. git stash reapplies the last stash and deletes it from the list. This feature is especially helpful when dealing with sudden improvements in the middle of work.
Key points
- Git stash stash stores changes to the already-tracked file
- Git stash pop applies the last stash and then deletes it from the list
- Git stash apply apply stash without deleting it from the list
- Git stash list and git stash clear to view and delete stacks of stash
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.