Files
developer-roadmap/roadmaps/git-github/content/git-stash-basics@X9K3PBpGsMoXkJsKdJPI7.md

9 lines
754 B
Markdown

# Git Stash Basics
Git stash temporarily saves uncommitted changes so the working directory can be cleaned without committing incomplete work. The command `git stash` saves the current changes and reverts the working directory to match the last commit, while `git stash pop` restores them later. This is useful when a developer needs to quickly switch branches or pull updates without losing in-progress work.
Visit the following resources to learn more:
- [@article@Git stash](https://www.atlassian.com/git/tutorials/saving-changes/git-stash)
- [@article@A practical guide to using the git stash command](https://opensource.com/article/21/4/git-stash)
- [@course@git stash, step by step (Interactive Lesson)](https://gitualize.com/commands/git-stash)